T - P - public abstract class AbstractSyncMessageBus<T,P extends IPublicationCommand> extends Object implements ISyncMessageBus<T,P>
| Constructor and Description |
|---|
AbstractSyncMessageBus(ISyncBusConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
void |
addErrorHandler(IPublicationErrorHandler handler)
Publication errors may occur at various points of time during message delivery.
|
protected MessagePublication |
createMessagePublication(T message) |
protected MessagePublication.Factory |
getPublicationFactory() |
Collection<IPublicationErrorHandler> |
getRegisteredErrorHandlers()
Returns an immutable collection containing all the registered error handlers
|
BusRuntime |
getRuntime() |
protected Collection<Subscription> |
getSubscriptionsByMessageType(Class messageType) |
void |
handlePublicationError(PublicationError error) |
void |
subscribe(Object listener)
Subscribe all handlers of the given listener.
|
boolean |
unsubscribe(Object listener)
Immediately remove all registered message handlers (if any) of the given listener.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublishpostpublic AbstractSyncMessageBus(ISyncBusConfiguration configuration)
protected MessagePublication.Factory getPublicationFactory()
public Collection<IPublicationErrorHandler> getRegisteredErrorHandlers()
ErrorHandlingSupportgetRegisteredErrorHandlers in interface ErrorHandlingSupportpublic boolean unsubscribe(Object listener)
PubSubSupportunsubscribe in interface PubSubSupport<T>public void subscribe(Object listener)
PubSubSupportsubscribe in interface PubSubSupport<T>public final void addErrorHandler(IPublicationErrorHandler handler)
ErrorHandlingSupportaddErrorHandler in interface ErrorHandlingSupportpublic BusRuntime getRuntime()
getRuntime in interface RuntimeProviderprotected MessagePublication createMessagePublication(T message)
protected Collection<Subscription> getSubscriptionsByMessageType(Class messageType)
public void handlePublicationError(PublicationError error)
Copyright © 2013. All Rights Reserved.