public interface ExceptionBus extends org.refcodes.eventbus.GenericEventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.observer.EventMetaData,String>
ExceptionBus
extends the ApplicationBus
with convenience
functionality common to everyday application and service development
regarding dispatching of Throwable
instances.Modifier and Type | Method and Description |
---|---|
default String |
onException(Class<?> aPublisherType,
org.refcodes.observer.Observer<ExceptionBusEvent> aObserver)
Similar to the more generic method
GenericBusObservable.subscribe(EventMatcher, Observer) THOUGH subscribes for
ExceptionBusEvent instances with the given attributes. |
default String |
onException(Enum<?> aAction,
Class<?> aPublisherType,
org.refcodes.observer.Observer<ExceptionBusEvent> aObserver)
Similar to the more generic method
GenericBusObservable.subscribe(EventMatcher, Observer) THOUGH subscribes for
ExceptionBusEvent instances with the given attributes. |
default String |
onException(Enum<?> aAction,
org.refcodes.observer.Observer<ExceptionBusEvent> aObserver)
Similar to the more generic method
GenericBusObservable.subscribe(EventMatcher, Observer) THOUGH subscribes for
ExceptionBusEvent instances with the given attributes. |
default String |
onException(Enum<?> aAction,
String aChannel,
org.refcodes.observer.Observer<ExceptionBusEvent> aObserver)
Similar to the more generic method
GenericBusObservable.subscribe(EventMatcher, Observer) THOUGH subscribes for
ExceptionBusEvent instances with the given attributes. |
default String |
onException(Enum<?> aAction,
String aAlias,
String aGroup,
String aChannel,
String aUid,
Class<?> aPublisherType,
org.refcodes.observer.Observer<ExceptionBusEvent> aObserver)
Similar to the more generic method
GenericBusObservable.subscribe(EventMatcher, Observer) THOUGH subscribes for
ExceptionBusEvent instances with the given attributes. |
default String |
onException(org.refcodes.observer.Observer<ExceptionBusEvent> aObserver)
Similar to the more generic method
GenericBusObservable.subscribe(EventMatcher, Observer) THOUGH subscribes for
ExceptionBusEvent instances. |
default String |
onException(String aChannel,
org.refcodes.observer.Observer<ExceptionBusEvent> aObserver)
Similar to the more generic method
GenericBusObservable.subscribe(EventMatcher, Observer) THOUGH subscribes for
ExceptionBusEvent instances with the given attributes. |
default String |
onException(String aAlias,
String aGroup,
String aChannel,
String aUid,
Class<?> aPublisherType,
org.refcodes.observer.Observer<ExceptionBusEvent> aObserver)
Similar to the more generic method
GenericBusObservable.subscribe(EventMatcher, Observer) THOUGH subscribes for
ExceptionBusEvent instances with the given attributes. |
default void |
publishException(Enum<?> aAction,
Exception aException)
Publishes an event with the provided exception and the given attributes.
|
default void |
publishException(Enum<?> aAction,
Exception aException,
Class<?> aPublisherType)
Publishes an event with the provided exception and the given attributes.
|
default void |
publishException(Enum<?> aAction,
Exception aException,
Class<?> aPublisherType,
org.refcodes.eventbus.DispatchStrategy aStrategy)
Publishes an event with the provided exception and the given attributes.
|
default void |
publishException(Enum<?> aAction,
Exception aException,
org.refcodes.eventbus.DispatchStrategy aStrategy)
Publishes an event with the provided exception and the given attributes.
|
default void |
publishException(Enum<?> aAction,
Exception aException,
org.refcodes.observer.EventMetaData aEventMetaData)
Publishes an event with the provided exception and the given attributes.
|
default void |
publishException(Enum<?> aAction,
Exception aException,
org.refcodes.observer.EventMetaData aEventMetaData,
org.refcodes.eventbus.DispatchStrategy aStrategy)
Publishes an event with the provided exception and the given attributes.
|
default void |
publishException(Enum<?> aAction,
Exception aException,
String aChannel)
Publishes an event with the provided exception and the given attributes.
|
default void |
publishException(Enum<?> aAction,
Exception aException,
String aChannel,
org.refcodes.eventbus.DispatchStrategy aStrategy)
Publishes an event with the provided exception and the given attributes.
|
default void |
publishException(Enum<?> aAction,
Exception aException,
String aAlias,
String aGroup,
String aChannel,
String aUid,
Class<?> aPublisherType)
Publishes an event with the provided exception for the given attributes.
|
default void |
publishException(Enum<?> aAction,
Exception aException,
String aAlias,
String aGroup,
String aChannel,
String aUid,
Class<?> aPublisherType,
org.refcodes.eventbus.DispatchStrategy aStrategy)
Publishes an event with the provided exception and the given attributes.
|
default void |
publishException(Exception aException)
Publishes an event with the provided exception and the given attributes.
|
default void |
publishException(Exception aException,
Class<?> aPublisherType)
Publishes an event with the provided exception and the given attributes.
|
default void |
publishException(Exception aException,
Class<?> aPublisherType,
org.refcodes.eventbus.DispatchStrategy aStrategy)
Publishes an event with the provided exception and the given attributes.
|
default void |
publishException(Exception aException,
org.refcodes.eventbus.DispatchStrategy aStrategy)
Publishes an event with the provided exception and the given attributes.
|
default void |
publishException(Exception aException,
org.refcodes.observer.EventMetaData aEventMetaData)
Publishes an event with the provided exception and the given attributes.
|
default void |
publishException(Exception aException,
org.refcodes.observer.EventMetaData aEventMetaData,
org.refcodes.eventbus.DispatchStrategy aStrategy)
Publishes an event with the provided exception and the given attributes.
|
default void |
publishException(Exception aException,
String aChannel)
Publishes an event with the provided exception and the given attributes.
|
default void |
publishException(Exception aException,
String aChannel,
org.refcodes.eventbus.DispatchStrategy aStrategy)
Publishes an event with the provided exception and the given attributes.
|
default void |
publishException(Exception aException,
String aAlias,
String aGroup,
String aChannel,
String aUid,
Class<?> aPublisherType)
Publishes an event with the provided exception and the given attributes.
|
default void |
publishException(Exception aException,
String aAlias,
String aGroup,
String aChannel,
String aUid,
Class<?> aPublisherType,
org.refcodes.eventbus.DispatchStrategy aStrategy)
Publishes an event with the provided exception and the given attributes.
|
onAction, onAction, onActions, onActions, onAlias, onAlias, onCatchAll, onChannel, onChannel, onEvent, onEvent, onEvent, onEvent, onEvent, onEvent, onEvent, onEvent, onEvent, onEvent, onEvent, onEvent, onEvent, onEvent, onGroup, onGroup, onType, onUniversalId, onUniversalId, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent
subscribe, subscribe, subscribe, unsubscribeAll
default void publishException(Enum<?> aAction, Exception aException, Class<?> aPublisherType)
aAction
- The action which this represents.aException
- The exception to be carried by the event.aPublisherType
- The type of the event publisher.default void publishException(Enum<?> aAction, Exception aException, String aChannel)
aAction
- The action which this represents.aException
- The exception to be carried by the event.aChannel
- The channel name on which the event is receivable.default void publishException(Enum<?> aAction, Exception aException, String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType)
aAction
- The action which this represents.aException
- The exception to be carried by the event.aAlias
- The alias property.aGroup
- The group property.aChannel
- The channel property.aUid
- The UID (Universal-ID) property.aPublisherType
- The type of the event publisher.default void publishException(Enum<?> aAction, Exception aException, org.refcodes.observer.EventMetaData aEventMetaData)
aAction
- The action which the event represents.aException
- The exception to be carried by the event.aException
- The exception to be carried by the event.aEventMetaData
- The Meta-Data to by supplied by the event.default void publishException(Enum<?> aAction, Exception aException)
aAction
- The action which the event represents.aException
- The exception to be carried by the event.aException
- The exception to be carried by the event.default void publishException(Exception aException, Class<?> aPublisherType)
aException
- The exception to be carried by the event.aPublisherType
- The type of the event publisher.default void publishException(Exception aException, String aChannel)
aException
- The exception to be carried by the event.aChannel
- The channel name on which the event is receivable.default void publishException(Exception aException, String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType)
aException
- The exception to be carried by the event.aAlias
- The alias property.aGroup
- The group property.aChannel
- The channel property.aUid
- The UID (Universal-ID) property.aPublisherType
- The type of the event publisher.default void publishException(Exception aException, org.refcodes.observer.EventMetaData aEventMetaData)
aException
- The exception to be carried by the event.aEventMetaData
- The Meta-Data to by supplied by the event.default void publishException(Exception aException)
aException
- The exception to be carried by the event.default void publishException(Enum<?> aAction, Exception aException, Class<?> aPublisherType, org.refcodes.eventbus.DispatchStrategy aStrategy)
aAction
- The action which this represents.aException
- The exception to be carried by the event.aPublisherType
- The type of the event publisher.aStrategy
- The DispatchStrategy
to use when dispatching the
event.default void publishException(Enum<?> aAction, Exception aException, String aChannel, org.refcodes.eventbus.DispatchStrategy aStrategy)
aAction
- The action which this represents.aException
- The exception to be carried by the event.aChannel
- The channel name on which the event is receivable.aStrategy
- The DispatchStrategy
to use when dispatching the
event.default void publishException(Enum<?> aAction, Exception aException, String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, org.refcodes.eventbus.DispatchStrategy aStrategy)
aAction
- The action which this represents.aException
- The exception to be carried by the event.aAlias
- The alias property.aGroup
- The group property.aChannel
- The channel property.aUid
- The UID (Universal-ID) property.aPublisherType
- The type of the event publisher.aStrategy
- The DispatchStrategy
to use when dispatching the
event.default void publishException(Enum<?> aAction, Exception aException, org.refcodes.observer.EventMetaData aEventMetaData, org.refcodes.eventbus.DispatchStrategy aStrategy)
aAction
- The action which the event represents.aException
- The exception to be carried by the event.aException
- The exception to be carried by the event.aEventMetaData
- The Meta-Data to by supplied by the event.aStrategy
- The DispatchStrategy
to use when dispatching the
event.default void publishException(Enum<?> aAction, Exception aException, org.refcodes.eventbus.DispatchStrategy aStrategy)
aAction
- The action which the event represents.aException
- The exception to be carried by the event.aException
- The exception to be carried by the event.aStrategy
- The DispatchStrategy
to use when dispatching the
event.default void publishException(Exception aException, Class<?> aPublisherType, org.refcodes.eventbus.DispatchStrategy aStrategy)
aException
- The exception to be carried by the event.aPublisherType
- The type of the event publisher.aStrategy
- The DispatchStrategy
to use when dispatching the
event.default void publishException(Exception aException, String aChannel, org.refcodes.eventbus.DispatchStrategy aStrategy)
aException
- The exception to be carried by the event.aChannel
- The channel name on which the event is receivable.aStrategy
- The DispatchStrategy
to use when dispatching the
event.default void publishException(Exception aException, String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, org.refcodes.eventbus.DispatchStrategy aStrategy)
aException
- The exception to be carried by the event.aAlias
- The alias property.aGroup
- The group property.aChannel
- The channel property.aUid
- The UID (Universal-ID) property.aPublisherType
- The type of the event publisher.aStrategy
- The DispatchStrategy
to use when dispatching the
event.default void publishException(Exception aException, org.refcodes.observer.EventMetaData aEventMetaData, org.refcodes.eventbus.DispatchStrategy aStrategy)
aException
- The exception to be carried by the event.aEventMetaData
- The Meta-Data to by supplied by the event.aStrategy
- The DispatchStrategy
to use when dispatching the
event.default void publishException(Exception aException, org.refcodes.eventbus.DispatchStrategy aStrategy)
aException
- The exception to be carried by the event.aStrategy
- The DispatchStrategy
to use when dispatching the
event.default String onException(org.refcodes.observer.Observer<ExceptionBusEvent> aObserver)
GenericBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for
ExceptionBusEvent
instances.aObserver
- The observer to be notified.default String onException(Class<?> aPublisherType, org.refcodes.observer.Observer<ExceptionBusEvent> aObserver)
GenericBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for
ExceptionBusEvent
instances with the given attributes.aPublisherType
- The type of the event publisher.aObserver
- The observer to be notified.default String onException(String aChannel, org.refcodes.observer.Observer<ExceptionBusEvent> aObserver)
GenericBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for
ExceptionBusEvent
instances with the given attributes.aChannel
- The channel name on which the event is receivable.aObserver
- The observer to be notified.default String onException(String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, org.refcodes.observer.Observer<ExceptionBusEvent> aObserver)
GenericBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for
ExceptionBusEvent
instances with the given attributes.aAlias
- The alias property.aGroup
- The group property.aChannel
- The channel property.aUid
- The UID (Universal-ID) property.aPublisherType
- The type of the event publisher.aObserver
- The observer to be notified.default String onException(Enum<?> aAction, Class<?> aPublisherType, org.refcodes.observer.Observer<ExceptionBusEvent> aObserver)
GenericBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for
ExceptionBusEvent
instances with the given attributes.aAction
- The action property.aPublisherType
- The type of the event publisher.aObserver
- The observer to be notified.default String onException(Enum<?> aAction, String aChannel, org.refcodes.observer.Observer<ExceptionBusEvent> aObserver)
GenericBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for
ExceptionBusEvent
instances with the given attributes.aAction
- The action property.aChannel
- The channel name on which the event is receivable.aObserver
- The observer to be notified.default String onException(Enum<?> aAction, String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, org.refcodes.observer.Observer<ExceptionBusEvent> aObserver)
GenericBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for
ExceptionBusEvent
instances with the given attributes.aAction
- The action property.aAlias
- The alias property.aGroup
- The group property.aChannel
- The channel property.aUid
- The UID (Universal-ID) property.aPublisherType
- The type of the event publisher.aObserver
- The observer to be notified.default String onException(Enum<?> aAction, org.refcodes.observer.Observer<ExceptionBusEvent> aObserver)
GenericBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for
ExceptionBusEvent
instances with the given attributes. Your
Observable
may be of the required type!aAction
- The action property.aObserver
- The observer to be notified.Copyright © 2018. All rights reserved.