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