public class MBassador<T> extends AbstractMessageBus<T,SyncAsyncPostCommand<T>>
IMessageBus.IPostCommand<T>| Constructor and Description |
|---|
MBassador(BusConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
SyncAsyncPostCommand<T> |
post(T message) |
void |
publish(T message)
Synchronously publish a message to all registered listeners (this includes listeners defined for super types)
The call blocks until every messageHandler has processed the message.
|
MessagePublication |
publishAsync(T message) |
MessagePublication |
publishAsync(T message,
long timeout,
TimeUnit unit) |
addAsynchronousDeliveryRequest, addAsynchronousDeliveryRequest, addErrorHandler, finalize, getExecutor, getRegisteredErrorHandlers, getSubscriptionsByMessageType, handlePublicationError, hasPendingMessages, subscribe, unsubscribepublic MBassador(BusConfiguration configuration)
public MessagePublication publishAsync(T message)
public MessagePublication publishAsync(T message, long timeout, TimeUnit unit)
public void publish(T message)
message - public SyncAsyncPostCommand<T> post(T message)
Copyright © 2013. All Rights Reserved.