public class MBassador<T> extends AbstractSyncAsyncMessageBus<T,SyncAsyncPostCommand<T>> implements IMBassador<T>
| Constructor and Description |
|---|
MBassador(BusConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
SyncAsyncPostCommand<T> |
post(T message)
Publish a message to the bus using on of its supported message publication mechanisms.
|
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, finalize, getExecutor, hasPendingMessages, shutdownaddErrorHandler, createMessagePublication, getPublicationFactory, getRegisteredErrorHandlers, getRuntime, getSubscriptionsByMessageType, handlePublicationError, subscribe, unsubscribeclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetExecutor, hasPendingMessages, shutdownsubscribe, unsubscribegetRuntimeaddErrorHandler, getRegisteredErrorHandlerspublic MBassador(BusConfiguration configuration)
public MessagePublication publishAsync(T message)
publishAsync in interface IMBassador<T>public MessagePublication publishAsync(T message, long timeout, TimeUnit unit)
publishAsync in interface IMBassador<T>public void publish(T message)
publish in interface PubSubSupport<T>message - public SyncAsyncPostCommand<T> post(T message)
IMessageBuspost in interface GenericMessagePublicationSupport<T,SyncAsyncPostCommand<T>>post in interface IMessageBus<T,SyncAsyncPostCommand<T>>Copyright © 2013. All Rights Reserved.