Package net.engio.mbassy.bus.publication
Interface ISyncAsyncPublicationCommand
-
- All Superinterfaces:
IPublicationCommand
- All Known Implementing Classes:
SyncAsyncPostCommand
public interface ISyncAsyncPublicationCommand extends IPublicationCommand
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IMessagePublication
asynchronously()
Execute the message publication asynchronously.IMessagePublication
asynchronously(long timeout, java.util.concurrent.TimeUnit unit)
Execute the message publication asynchronously.-
Methods inherited from interface net.engio.mbassy.bus.publication.IPublicationCommand
now
-
-
-
-
Method Detail
-
asynchronously
IMessagePublication asynchronously()
Execute the message publication asynchronously. The behaviour of this method depends on the configured queuing strategy: If an unbound queuing strategy is used the call returns immediately. If a bounded queue is used the call might block until the message can be placed in the queue.- Returns:
- A message publication that can be used to access information about the state of
-
asynchronously
IMessagePublication asynchronously(long timeout, java.util.concurrent.TimeUnit unit)
Execute the message publication asynchronously. The behaviour of this method depends on the configured queuing strategy: If an unbound queuing strategy is used the call returns immediately. If a bounded queue is used the call will block until the message can be placed in the queue or the timeout is reached.- Returns:
- A message publication that wraps up the publication request
-
-