public class SyncAsyncPostCommand<T> extends Object implements ISyncAsyncPublicationCommand
Constructor and Description |
---|
SyncAsyncPostCommand(MBassador<T> mBassador,
T message) |
Modifier and Type | Method and Description |
---|---|
IMessagePublication |
asynchronously()
Execute the message publication asynchronously.
|
IMessagePublication |
asynchronously(long timeout,
TimeUnit unit)
Execute the message publication asynchronously.
|
IMessagePublication |
now()
Execute the message publication immediately.
|
public IMessagePublication now()
IPublicationCommand
now
in interface IPublicationCommand
public IMessagePublication asynchronously()
ISyncAsyncPublicationCommand
asynchronously
in interface ISyncAsyncPublicationCommand
public IMessagePublication asynchronously(long timeout, TimeUnit unit)
ISyncAsyncPublicationCommand
asynchronously
in interface ISyncAsyncPublicationCommand
Copyright © 2018. All rights reserved.