org.refcodes.eventbus.DispatchStrategyAccessor
, org.refcodes.observer.EventMatcher<ApplicationEvent>
, org.refcodes.eventbus.GenericBusObservable<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.observer.EventMetaData>
, org.refcodes.eventbus.GenericBusPublisher<ApplicationEvent>
, org.refcodes.eventbus.GenericEventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.observer.EventMetaData,String>
, org.refcodes.component.HandleLookup<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>>
, org.refcodes.matcher.Matcher<ApplicationEvent>
, org.refcodes.observer.Publisher<ApplicationEvent>
ApplicationBus
, MessagePropertiesBus
ApplicationBusImpl
public interface PayloadBus extends org.refcodes.eventbus.GenericEventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.observer.EventMetaData,String>
PayloadBus
extends the ApplicationBus
with convenience
functionality common to everyday application and service development
regarding dispatching of payloads.Modifier and Type | Method | Description |
---|---|---|
default String |
onPayload(Class<?> aPublisherType,
org.refcodes.observer.Observer<PayloadBusEvent<?>> aObserver) |
Similar to the more generic method
GenericBusObservable.subscribe(EventMatcher, Observer) THOUGH subscribes for
PayloadBusEvent instances with the given attributes. |
default String |
onPayload(Enum<?> aAction,
Class<?> aPublisherType,
org.refcodes.observer.Observer<PayloadBusEvent<?>> aObserver) |
Similar to the more generic method
GenericBusObservable.subscribe(EventMatcher, Observer) THOUGH subscribes for
PayloadBusEvent instances with the given attributes. |
default String |
onPayload(Enum<?> aAction,
String aAlias,
String aGroup,
String aChannel,
String aUid,
Class<?> aPublisherType,
org.refcodes.observer.Observer<PayloadBusEvent<?>> aObserver) |
Similar to the more generic method
GenericBusObservable.subscribe(EventMatcher, Observer) THOUGH subscribes for
PayloadBusEvent instances with the given attributes. |
default String |
onPayload(Enum<?> aAction,
String aChannel,
org.refcodes.observer.Observer<PayloadBusEvent<?>> aObserver) |
Similar to the more generic method
GenericBusObservable.subscribe(EventMatcher, Observer) THOUGH subscribes for
PayloadBusEvent instances with the given attributes. |
default String |
onPayload(Enum<?> aAction,
org.refcodes.observer.Observer<PayloadBusEvent<?>> aObserver) |
Similar to the more generic method
GenericBusObservable.subscribe(EventMatcher, Observer) THOUGH subscribes for
PayloadBusEvent instances with the given attributes. |
default String |
onPayload(String aAlias,
String aGroup,
String aChannel,
String aUid,
Class<?> aPublisherType,
org.refcodes.observer.Observer<PayloadBusEvent<?>> aObserver) |
Similar to the more generic method
GenericBusObservable.subscribe(EventMatcher, Observer) THOUGH subscribes for
PayloadBusEvent instances with the given attributes. |
default String |
onPayload(String aChannel,
org.refcodes.observer.Observer<PayloadBusEvent<?>> aObserver) |
Similar to the more generic method
GenericBusObservable.subscribe(EventMatcher, Observer) THOUGH subscribes for
PayloadBusEvent instances with the given attributes. |
default String |
onPayload(org.refcodes.observer.Observer<PayloadBusEvent<?>> aObserver) |
Similar to the more generic method
GenericBusObservable.subscribe(EventMatcher, Observer) THOUGH subscribes for
PayloadBusEvent instances. |
default <P> void |
publishPayload(Enum<?> aAction,
P aPayload) |
Publishes an event with the provided payload and the given attributes.
|
default <P> void |
publishPayload(Enum<?> aAction,
P aPayload,
Class<?> aPublisherType) |
Publishes an event with the provided payload and the given attributes.
|
default <P> void |
publishPayload(Enum<?> aAction,
P aPayload,
Class<?> aPublisherType,
org.refcodes.eventbus.DispatchStrategy aStrategy) |
Publishes an event with the provided payload and the given attributes.
|
default <P> void |
publishPayload(Enum<?> aAction,
P aPayload,
String aChannel) |
Publishes an event with the provided payload and the given attributes.
|
default <P> void |
publishPayload(Enum<?> aAction,
P aPayload,
String aAlias,
String aGroup,
String aChannel,
String aUid,
Class<?> aPublisherType) |
Publishes an event with the provided payload and the given attributes.
|
default <P> void |
publishPayload(Enum<?> aAction,
P aPayload,
String aAlias,
String aGroup,
String aChannel,
String aUid,
Class<?> aPublisherType,
org.refcodes.eventbus.DispatchStrategy aStrategy) |
Publishes an event with the provided payload and the given attributes.
|
default <P> void |
publishPayload(Enum<?> aAction,
P aPayload,
String aChannel,
org.refcodes.eventbus.DispatchStrategy aStrategy) |
Publishes an event with the provided payload and the given attributes.
|
default <P> void |
publishPayload(Enum<?> aAction,
P aPayload,
org.refcodes.eventbus.DispatchStrategy aStrategy) |
Publishes an event with the provided payload and the given attributes.
|
default <P> void |
publishPayload(Enum<?> aAction,
P aPayload,
org.refcodes.observer.EventMetaData aEventMetaData) |
Publishes an event with the provided payload and the given attributes.
|
default <P> void |
publishPayload(Enum<?> aAction,
P aPayload,
org.refcodes.observer.EventMetaData aEventMetaData,
org.refcodes.eventbus.DispatchStrategy aStrategy) |
Publishes an event with the provided payload and the given attributes.
|
default <P> void |
publishPayload(P aPayload) |
Publishes an event with the provided payload and the given attributes.
|
default <P> void |
publishPayload(P aPayload,
Class<?> aPublisherType) |
Publishes an event with the provided payload and the given attributes.
|
default <P> void |
publishPayload(P aPayload,
Class<?> aPublisherType,
org.refcodes.eventbus.DispatchStrategy aStrategy) |
Publishes an event with the provided payload and the given attributes.
|
default <P> void |
publishPayload(P aPayload,
String aChannel) |
Publishes an event with the provided payload and the given attributes.
|
default <P> void |
publishPayload(P aPayload,
String aAlias,
String aGroup,
String aChannel,
String aUid,
Class<?> aPublisherType) |
Publishes an event with the provided payload and the given attributes.
|
default <P> void |
publishPayload(P aPayload,
String aAlias,
String aGroup,
String aChannel,
String aUid,
Class<?> aPublisherType,
org.refcodes.eventbus.DispatchStrategy aStrategy) |
Publishes an event with the provided payload and the given attributes.
|
default <P> void |
publishPayload(P aPayload,
String aChannel,
org.refcodes.eventbus.DispatchStrategy aStrategy) |
Publishes an event with the provided payload and the given attributes.
|
default <P> void |
publishPayload(P aPayload,
org.refcodes.eventbus.DispatchStrategy aStrategy) |
Publishes an event with the provided payload and the given attributes.
|
default <P> void |
publishPayload(P aPayload,
org.refcodes.observer.EventMetaData aEventMetaData) |
Publishes an event with the provided payload and the given attributes.
|
default <P> void |
publishPayload(P aPayload,
org.refcodes.observer.EventMetaData aEventMetaData,
org.refcodes.eventbus.DispatchStrategy aStrategy) |
Publishes an event with the provided payload and the given attributes.
|
subscribe, subscribe, subscribe, unsubscribeAll
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
default <P> void publishPayload(Enum<?> aAction, P aPayload, Class<?> aPublisherType)
P
- The type of the payload to carry.aAction
- The action which this represents.aPayload
- The payload to be carried by the event.aPublisherType
- The type of the event publisher.default <P> void publishPayload(Enum<?> aAction, P aPayload, String aChannel)
P
- The type of the payload to carry.aAction
- The action which this represents.aPayload
- The payload to be carried by the event.aChannel
- The channel name on which the event is receivable.default <P> void publishPayload(Enum<?> aAction, P aPayload, String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType)
P
- The type of the payload to carry.aAction
- The action which this represents.aPayload
- The payload 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 <P> void publishPayload(Enum<?> aAction, P aPayload, org.refcodes.observer.EventMetaData aEventMetaData)
P
- The type of the payload to carry.aAction
- The action which the event represents.aPayload
- The payload to be carried by the event.aEventMetaData
- The Meta-Data to by supplied by the event.default <P> void publishPayload(Enum<?> aAction, P aPayload)
P
- The type of the payload to carry.aAction
- The action which the event represents.aPayload
- The payload to be carried by the event.default <P> void publishPayload(P aPayload, Class<?> aPublisherType)
P
- The type of the payload to carry.aPayload
- The payload to be carried by the event.aPublisherType
- The type of the event publisher.default <P> void publishPayload(P aPayload, String aChannel)
P
- The type of the payload to carry.aPayload
- The payload to be carried by the event.aChannel
- The channel name on which the event is receivable.default <P> void publishPayload(P aPayload, String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType)
P
- The type of the payload to carry.aPayload
- The payload 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 <P> void publishPayload(P aPayload, org.refcodes.observer.EventMetaData aEventMetaData)
P
- The type of the payload to carry.aPayload
- The payload to be carried by the event.aEventMetaData
- The Meta-Data to by supplied by the event.default <P> void publishPayload(P aPayload)
P
- The type of the payload to carry.aPayload
- The payload to be carried by the event.default <P> void publishPayload(Enum<?> aAction, P aPayload, Class<?> aPublisherType, org.refcodes.eventbus.DispatchStrategy aStrategy)
P
- The type of the payload to carry.aAction
- The action which this represents.aPayload
- The payload to be carried by the event.aPublisherType
- The type of the event publisher.aStrategy
- The DispatchStrategy
to use when dispatching the
event.default <P> void publishPayload(Enum<?> aAction, P aPayload, String aChannel, org.refcodes.eventbus.DispatchStrategy aStrategy)
P
- The type of the payload to carry.aAction
- The action which this represents.aPayload
- The payload 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 <P> void publishPayload(Enum<?> aAction, P aPayload, String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, org.refcodes.eventbus.DispatchStrategy aStrategy)
P
- The type of the payload to carry.aAction
- The action which this represents.aPayload
- The payload 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 <P> void publishPayload(Enum<?> aAction, P aPayload, org.refcodes.observer.EventMetaData aEventMetaData, org.refcodes.eventbus.DispatchStrategy aStrategy)
P
- The type of the payload to carry.aAction
- The action which the event represents.aPayload
- The payload 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 <P> void publishPayload(Enum<?> aAction, P aPayload, org.refcodes.eventbus.DispatchStrategy aStrategy)
P
- The type of the payload to carry.aAction
- The action which the event represents.aPayload
- The payload to be carried by the event.aStrategy
- The DispatchStrategy
to use when dispatching the
event.default <P> void publishPayload(P aPayload, Class<?> aPublisherType, org.refcodes.eventbus.DispatchStrategy aStrategy)
P
- The type of the payload to carry.aPayload
- The payload to be carried by the event.aPublisherType
- The type of the event publisher.aStrategy
- The DispatchStrategy
to use when dispatching the
event.default <P> void publishPayload(P aPayload, String aChannel, org.refcodes.eventbus.DispatchStrategy aStrategy)
P
- The type of the payload to carry.aPayload
- The payload 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 <P> void publishPayload(P aPayload, String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, org.refcodes.eventbus.DispatchStrategy aStrategy)
P
- The type of the payload to carry.aPayload
- The payload 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 <P> void publishPayload(P aPayload, org.refcodes.observer.EventMetaData aEventMetaData, org.refcodes.eventbus.DispatchStrategy aStrategy)
P
- The type of the payload to carry.aPayload
- The payload 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 <P> void publishPayload(P aPayload, org.refcodes.eventbus.DispatchStrategy aStrategy)
P
- The type of the payload to carry.aPayload
- The payload to be carried by the event.aStrategy
- The DispatchStrategy
to use when dispatching the
event.default String onPayload(org.refcodes.observer.Observer<PayloadBusEvent<?>> aObserver)
GenericBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for
PayloadBusEvent
instances.aObserver
- The observer to be notified.default String onPayload(Class<?> aPublisherType, org.refcodes.observer.Observer<PayloadBusEvent<?>> aObserver)
GenericBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for
PayloadBusEvent
instances with the given attributes.aPublisherType
- The type of the event publisher.aObserver
- The observer to be notified.default String onPayload(String aChannel, org.refcodes.observer.Observer<PayloadBusEvent<?>> aObserver)
GenericBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for
PayloadBusEvent
instances with the given attributes.aChannel
- The channel name on which the event is receivable.aObserver
- The observer to be notified.default String onPayload(String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, org.refcodes.observer.Observer<PayloadBusEvent<?>> aObserver)
GenericBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for
PayloadBusEvent
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 onPayload(Enum<?> aAction, Class<?> aPublisherType, org.refcodes.observer.Observer<PayloadBusEvent<?>> aObserver)
GenericBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for
PayloadBusEvent
instances with the given attributes.aAction
- The action property.aPublisherType
- The type of the event publisher.aObserver
- The observer to be notified.default String onPayload(Enum<?> aAction, String aChannel, org.refcodes.observer.Observer<PayloadBusEvent<?>> aObserver)
GenericBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for
PayloadBusEvent
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 onPayload(Enum<?> aAction, String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, org.refcodes.observer.Observer<PayloadBusEvent<?>> aObserver)
GenericBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for
PayloadBusEvent
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 onPayload(Enum<?> aAction, org.refcodes.observer.Observer<PayloadBusEvent<?>> aObserver)
GenericBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for
PayloadBusEvent
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.