Package net.engio.mbassy.bus.publication
Class SyncAsyncPostCommand<T>
java.lang.Object
net.engio.mbassy.bus.publication.SyncAsyncPostCommand<T>
- All Implemented Interfaces:
IPublicationCommand
,ISyncAsyncPublicationCommand
This post command provides access to standard synchronous and asynchronous dispatch
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExecute the message publication asynchronously.asynchronously
(long timeout, TimeUnit unit) Execute the message publication asynchronously.now()
Execute the message publication immediately.
-
Field Details
-
message
-
mBassador
-
-
Constructor Details
-
SyncAsyncPostCommand
-
-
Method Details
-
now
Description copied from interface:IPublicationCommand
Execute the message publication immediately. This call blocks until every matching message handler has been invoked.- Specified by:
now
in interfaceIPublicationCommand
-
asynchronously
Description copied from interface:ISyncAsyncPublicationCommand
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.- Specified by:
asynchronously
in interfaceISyncAsyncPublicationCommand
- Returns:
- A message publication that can be used to access information about the state of
-
asynchronously
Description copied from interface:ISyncAsyncPublicationCommand
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.- Specified by:
asynchronously
in interfaceISyncAsyncPublicationCommand
- Returns:
- A message publication that wraps up the publication request
-