public class SyncMessageBus<T> extends AbstractPubSubSupport<T> implements PubSubSupport<T>, ErrorHandlingSupport, GenericMessagePublicationSupport<T,SyncMessageBus.SyncPostCommand>
| Modifier and Type | Class and Description |
|---|---|
class |
SyncMessageBus.SyncPostCommand |
| Constructor and Description |
|---|
SyncMessageBus(IBusConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
SyncMessageBus.SyncPostCommand |
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.
|
addErrorHandler, getRegisteredErrorHandlers, getRuntime, handlePublicationError, subscribe, toString, unsubscribeequals, getClass, hashCode, notify, notifyAll, wait, wait, waitsubscribe, unsubscribegetRuntimeaddErrorHandler, getRegisteredErrorHandlerspublic SyncMessageBus(IBusConfiguration configuration)
public void publish(T message)
PubSubSupportpublish in interface PubSubSupport<T>public SyncMessageBus.SyncPostCommand post(T message)
GenericMessagePublicationSupportpost in interface GenericMessagePublicationSupport<T,SyncMessageBus.SyncPostCommand>message - - Any subtype of T welcomeCopyright © 2015. All rights reserved.