public class MBassador<T> extends AbstractSyncAsyncMessageBus<T,SyncAsyncPostCommand<T>> implements IMessageBus<T,SyncAsyncPostCommand<T>>
| Constructor and Description |
|---|
MBassador() |
MBassador(IBusConfiguration 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.
|
IMessagePublication |
publishAsync(T message) |
IMessagePublication |
publishAsync(T message,
long timeout,
TimeUnit unit) |
hasPendingMessages, shutdownaddErrorHandler, getRegisteredErrorHandlers, getRuntime, handlePublicationError, subscribe, toString, unsubscribeequals, getClass, hashCode, notify, notifyAll, wait, wait, waithasPendingMessages, shutdownsubscribe, unsubscribegetRuntimeaddErrorHandler, getRegisteredErrorHandlerspublic MBassador(IBusConfiguration configuration)
public MBassador()
public IMessagePublication publishAsync(T message)
public IMessagePublication publishAsync(T message, long timeout, TimeUnit unit)
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>>message - - Any subtype of T welcomeCopyright © 2015. All rights reserved.