public class SyncMessageBus<T> extends AbstractPubSubSupport<T> implements PubSubSupport<T>, ErrorHandlingSupport, GenericMessagePublicationSupport<T,SyncMessageBus.SyncPostCommand>
| Modifier and Type | Class and Description |
|---|---|
class |
SyncMessageBus.SyncPostCommand |
ERROR_HANDLER_MSG| Constructor and Description |
|---|
SyncMessageBus()
Default constructor using default setup.
|
SyncMessageBus(BusConfiguration configuration)
Construct with fully specified configuration
|
SyncMessageBus(IPublicationErrorHandler errorHandler)
Construct with default settings and specified publication error handler
|
| 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.
|
IMessagePublication |
publish(T message)
Synchronously publish a message to all registered listeners.
|
getRegisteredErrorHandlers, getRuntime, subscribe, toString, unsubscribeequals, getClass, hashCode, notify, notifyAll, wait, wait, waitsubscribe, unsubscribegetRuntimegetRegisteredErrorHandlerspublic SyncMessageBus()
public SyncMessageBus(IPublicationErrorHandler errorHandler)
errorHandler - public SyncMessageBus(BusConfiguration configuration)
configuration - public IMessagePublication 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 © 2018. All rights reserved.