Index
All Classes and Interfaces|All Packages
A
- AbstractEventBus<EVT extends EventBrokerEvent<?>,
O extends org.refcodes.observer.Observer<EVT>, MATCH extends EventBrokerEventMatcher<EVT>, META extends org.refcodes.observer.EventMetaData, H> - Class in org.refcodes.eventbus -
The Class AbstractEventBus.
- AbstractEventBus(boolean, HandleGenerator<H>) - Constructor for class org.refcodes.eventbus.AbstractEventBus
-
Constructs the
AbstractEventBus
with theDispatchStrategy
beingDispatchStrategy.CASCADE
when publishing events and the given handle generator. - AbstractEventBus(HandleGenerator<H>) - Constructor for class org.refcodes.eventbus.AbstractEventBus
-
Constructs the
AbstractEventBus
with theDispatchStrategy
beingDispatchStrategy.CASCADE
when publishing events and the given handle generator, anyThread
instances created are created as daemon threads. - AbstractEventBus(HandleGenerator<H>, ExecutorService) - Constructor for class org.refcodes.eventbus.AbstractEventBus
-
Constructs the
AbstractEventBus
with theDispatchStrategy
beingDispatchStrategy.CASCADE
when publishing events and the given handle generator. - AbstractEventBus(DispatchStrategy, boolean, HandleGenerator<H>) - Constructor for class org.refcodes.eventbus.AbstractEventBus
-
Constructs the
AbstractEventBus
with the givenDispatchStrategy
when publishing events and the given handle generator. - AbstractEventBus(DispatchStrategy, HandleGenerator<H>) - Constructor for class org.refcodes.eventbus.AbstractEventBus
-
Constructs the
AbstractEventBus
with the givenDispatchStrategy
when publishing events and the given handle generator, anyThread
instances created are created as daemon threads. - AbstractEventBus(DispatchStrategy, HandleGenerator<H>, ExecutorService) - Constructor for class org.refcodes.eventbus.AbstractEventBus
-
Constructs the
AbstractEventBus
with the givenDispatchStrategy
when publishing events and the given handle generator. - actionEqualWith(A) - Static method in class org.refcodes.eventbus.EventBusSugar
-
Factory method to create an "EQUAL WITH" matcher for the given action compared with the action stored in the
EventMetaData
. - aliasEqualWith(String) - Static method in class org.refcodes.eventbus.EventBusSugar
-
Factory method to create an "EQUAL WITH" matcher for the given name compared with the name stored in the
EventMetaData
. - and(EventBusEventMatcher...) - Static method in class org.refcodes.eventbus.EventBusSugar
-
Factory method to create an "AND" matcher for the given matchers.
- ASYNC - Enum constant in enum class org.refcodes.eventbus.DispatchStrategy
-
Same as the
DispatchStrategy.SEQUENTIAL
approach with the difference that the sequential dispatch process is done asynchronously, freeing your parent's thread immediately after publishing your parent event. - asyncDispatchBus() - Static method in class org.refcodes.eventbus.EventBusSugar
-
Constructs the
EventBus
with theDispatchStrategy.ASYNC
when publishing events: Same as theDispatchStrategy.SEQUENTIAL
approach with the difference that the sequential dispatch process is done asynchronously, freeing your parent's thread immediately after publishing your parent event. - asyncDispatchBus(boolean) - Static method in class org.refcodes.eventbus.EventBusSugar
-
Constructs the
EventBus
with theDispatchStrategy.ASYNC
when publishing events: Same as theDispatchStrategy.SEQUENTIAL
approach with the difference that the sequential dispatch process is done asynchronously, freeing your parent's thread immediately after publishing your parent event.
B
- build() - Method in class org.refcodes.eventbus.EventBusEvent.Builder
-
Builder method of the builder.
- builder() - Static method in class org.refcodes.eventbus.EventBusEvent
-
Creates builder to build
EventBusEvent
.
C
- CASCADE - Enum constant in enum class org.refcodes.eventbus.DispatchStrategy
-
The parent (invoker) thread is used to publish the parent's event to all matching observers (and is blocked till done).
- cascadeDispatch(EVT, Object) - Method in class org.refcodes.eventbus.AbstractEventBus
-
Hook implementing the cascaded dispatch method as of
DispatchStrategy.CASCADE
. - cascadeDispatchBus() - Static method in class org.refcodes.eventbus.EventBusSugar
-
Constructs the
EventBus
with theDispatchStrategy.CASCADE
when publishing events: The parent (invoker) thread is used to publish the parent's event to all matching observers (and is blocked till done). - cascadeDispatchBus(boolean) - Static method in class org.refcodes.eventbus.EventBusSugar
-
Constructs the
EventBus
with theDispatchStrategy.CASCADE
when publishing events: The parent (invoker) thread is used to publish the parent's event to all matching observers (and is blocked till done). - catchAll() - Static method in class org.refcodes.eventbus.EventBusSugar
-
Catches all events, no matching is done.
- CatchAllEventBusMatcher() - Constructor for class org.refcodes.eventbus.EventBusSugar.CatchAllEventBusMatcher
- catchNone() - Static method in class org.refcodes.eventbus.EventBusSugar
-
Catches no event, no matching is done.
- CatchNoneEventBusMatcher() - Constructor for class org.refcodes.eventbus.EventBusSugar.CatchNoneEventBusMatcher
- channelEqualWith(String) - Static method in class org.refcodes.eventbus.EventBusSugar
-
Factory method to create an "EQUAL WITH" matcher for the given channel compared with the channel stored in the
EventMetaData
.
D
- destroy() - Method in class org.refcodes.eventbus.AbstractEventBus
-
Shuts down any
ExecutorService
by callingExecutorService.shutdown()
causing theEventDispatcher
to be disposed. - DispatchStrategy - Enum Class in org.refcodes.eventbus
-
The
DispatchStrategy
defines how child events are published within a parent event publish cycle. - DispatchStrategyAccessor - Interface in org.refcodes.eventbus
-
Provides an accessor for a
DispatchStrategy
property. - DispatchStrategyAccessor.DispatchStrategyMutator - Interface in org.refcodes.eventbus
-
Provides a mutator for a
DispatchStrategy
property. - DispatchStrategyAccessor.DispatchStrategyProperty - Interface in org.refcodes.eventbus
-
Provides a
DispatchStrategy
property.
E
- EventBroker<EVT extends EventBrokerEvent<?>,
MATCH extends org.refcodes.observer.EventMatcher<EVT>> - Interface in org.refcodes.eventbus -
Ready to implement vanilla plain
EventBroker
. - EventBrokerEvent<SRC> - Interface in org.refcodes.eventbus
-
Specialization of the
EventDispatcherEvent
to be used with theEventBroker
. - EventBrokerEventMatcher<EVT extends EventBrokerEvent<?>> - Interface in org.refcodes.eventbus
-
A convenience definition of an
EventMatcher
for the ready to use out of the boxEventBus
implementation of the genericEventDispatcher
definition. - eventBus() - Static method in class org.refcodes.eventbus.EventBusSugar
- eventBus(boolean) - Static method in class org.refcodes.eventbus.EventBusSugar
- EventBus - Class in org.refcodes.eventbus
-
The
EventBus
defines a predefinedEventDispatcher
tailored to use theMetaDataActionEvent
as event type to use. - EventBus() - Constructor for class org.refcodes.eventbus.EventBus
-
Constructs the
EventBus
with theDispatchStrategy
beingDispatchStrategy.CASCADE
when publishing events. - EventBus(boolean) - Constructor for class org.refcodes.eventbus.EventBus
-
Constructs the
EventBus
with theDispatchStrategy
beingDispatchStrategy.CASCADE
when publishing events. - EventBus(ExecutorService) - Constructor for class org.refcodes.eventbus.EventBus
-
Constructs the
EventBus
with theDispatchStrategy
beingDispatchStrategy.CASCADE
when publishing events. - EventBus(DispatchStrategy) - Constructor for class org.refcodes.eventbus.EventBus
-
Constructs the
EventBus
with the givenDispatchStrategy
when publishing events. - EventBus(DispatchStrategy, boolean) - Constructor for class org.refcodes.eventbus.EventBus
-
Constructs the
EventBus
with the givenDispatchStrategy
when publishing events. - EventBus(DispatchStrategy, ExecutorService) - Constructor for class org.refcodes.eventbus.EventBus
-
Constructs the
EventBus
with theDispatchStrategy
beingDispatchStrategy.CASCADE
when publishing events. - EventBusEvent - Class in org.refcodes.eventbus
-
Intuitive Meta-Class for the
MetaDataActionEvent
as used by theEventBus
. - EventBusEvent(Class<?>, EventBus) - Constructor for class org.refcodes.eventbus.EventBusEvent
-
Constructs an event with predefined values for the according properties retrieved from the caller's class.
- EventBusEvent(Enum<?>, Class<?>, EventBus) - Constructor for class org.refcodes.eventbus.EventBusEvent
-
Constructs an event with predefined values for the according properties retrieved from the caller's class.
- EventBusEvent(Enum<?>, String, Class<?>, EventBus) - Constructor for class org.refcodes.eventbus.EventBusEvent
-
Constructs an event with predefined values for the according properties retrieved from the caller's class.
- EventBusEvent(Enum<?>, String, String, String, String, Class<?>, EventBus) - Constructor for class org.refcodes.eventbus.EventBusEvent
-
Constructs an event with the given values for the according properties.
- EventBusEvent(Enum<?>, String, EventBus) - Constructor for class org.refcodes.eventbus.EventBusEvent
-
Constructs an event with predefined values for the according properties retrieved from the caller's class.
- EventBusEvent(Enum<?>, EventBus) - Constructor for class org.refcodes.eventbus.EventBusEvent
-
Constructs an event with the given Meta-Data.
- EventBusEvent(Enum<?>, EventMetaData, EventBus) - Constructor for class org.refcodes.eventbus.EventBusEvent
-
Constructs an event with the given Meta-Data.
- EventBusEvent(String, String, String, String, Class<?>, EventBus) - Constructor for class org.refcodes.eventbus.EventBusEvent
-
Constructs an event with the given values for the according properties.
- EventBusEvent(String, EventBus) - Constructor for class org.refcodes.eventbus.EventBusEvent
-
Constructs an event with predefined values for the according properties retrieved from the caller's class.
- EventBusEvent(EventBus) - Constructor for class org.refcodes.eventbus.EventBusEvent
-
Constructs an event with the given Meta-Data.
- EventBusEvent(EventMetaData, EventBus) - Constructor for class org.refcodes.eventbus.EventBusEvent
-
Constructs an event with the given Meta-Data.
- EventBusEvent.Builder - Class in org.refcodes.eventbus
-
Builder to build
EventBusEvent
. - EventBusEventMatcher - Interface in org.refcodes.eventbus
-
A convenience definition of an
EventMatcher
for the ready to use out of the boxEventBus
implementation of the genericEventDispatcher
definition. - EventBusObservable<E extends org.refcodes.observer.Event<?>,
O extends org.refcodes.observer.Observer<E>, MATCH extends org.refcodes.observer.EventMatcher<E>, H> - Interface in org.refcodes.eventbus - EventBusObserver - Interface in org.refcodes.eventbus
-
A convenience definition of an
Observer
for the ready to use out of the boxEventBus
implementation of the genericEventDispatcher
definition. - EventBusPublisher<E extends org.refcodes.observer.Event<?>> - Interface in org.refcodes.eventbus
-
The
EventBusPublisher
defines methods to publish events as ofPublisher.publishEvent(Event)
and to test beforehand if there is a consumer for a given event as ofMatchable.isMatching(Object)
. - EventBusSugar - Class in org.refcodes.eventbus
-
Declarative syntactic sugar which may be statically imported in order to allow declarative definitions for the
EventBusEventMatcher
elements. - EventBusSugar.CatchAllEventBusMatcher - Class in org.refcodes.eventbus
- EventBusSugar.CatchNoneEventBusMatcher - Class in org.refcodes.eventbus
- EventDispatcher<E extends org.refcodes.observer.Event<?>,
O extends org.refcodes.observer.Observer<E>, MATCH extends org.refcodes.observer.EventMatcher<E>, META extends org.refcodes.observer.EventMetaData, H> - Interface in org.refcodes.eventbus -
The
EventDispatcher
is the (virtual) machine wide manager forActionEvent
handling. - EventDispatcherEvent<A,
META extends org.refcodes.observer.EventMetaData, SRC> - Interface in org.refcodes.eventbus -
Intuitive Meta-Interface for the
MetaDataActionEvent
as used by theEventBus
. - EventDispatcherEvent.EventDispatcherEventBuilder<A,
META extends org.refcodes.observer.EventMetaData, SRC extends EventDispatcher<?, ?, ?, ?, ?>, B extends EventDispatcherEvent.EventDispatcherEventBuilder<A, META, SRC, B>> - Interface in org.refcodes.eventbus -
Intuitive Meta-Interface for the
EventDispatcherEvent.EventDispatcherEventBuilder
as used by theEventDispatcher
.
G
- getDispatchStrategy() - Method in class org.refcodes.eventbus.AbstractEventBus
-
Retrieves the
DispatchStrategy
property from the property. - getDispatchStrategy() - Method in interface org.refcodes.eventbus.DispatchStrategyAccessor
-
Retrieves the
DispatchStrategy
property from the property. - groupEqualWith(String) - Static method in class org.refcodes.eventbus.EventBusSugar
-
Factory method to create an "EQUAL WITH" matcher for the given group compared with the group stored in the
EventMetaData
.
H
- hasHandle(H) - Method in class org.refcodes.eventbus.AbstractEventBus
I
- isAssignableFrom(Class<?>) - Static method in class org.refcodes.eventbus.EventBusSugar
-
Factory method to create an event matcher by event type.
- isMatching(EVT) - Method in class org.refcodes.eventbus.AbstractEventBus
L
- letDispatchStrategy(DispatchStrategy) - Method in interface org.refcodes.eventbus.DispatchStrategyAccessor.DispatchStrategyProperty
-
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given
DispatchStrategy
(setter) as ofDispatchStrategyAccessor.DispatchStrategyMutator.setDispatchStrategy(DispatchStrategy)
and returns the very same value (getter). - lookupHandle(H) - Method in class org.refcodes.eventbus.AbstractEventBus
O
- onAction(Class<E>, Enum<?>, O) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events for the given action. - onAction(Class<EventBusEvent>, Enum<?>, Observer<EventBusEvent>) - Method in class org.refcodes.eventbus.EventBus
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events for the given action. - onAction(Enum<?>, O) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events for the given action. - onAction(Enum<?>, Observer<EventBusEvent>) - Method in class org.refcodes.eventbus.EventBus
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events for the given action. - onActions(Class<E>, O, Enum<?>...) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events for the given action. - onActions(Class<EventBusEvent>, Observer<EventBusEvent>, Enum<?>...) - Method in class org.refcodes.eventbus.EventBus
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events for the given action. - onActions(Observer<EventBusEvent>, Enum<?>...) - Method in class org.refcodes.eventbus.EventBus
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events for the given action. - onActions(O, Enum<?>...) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events for the given action. - onAlias(Class<E>, String, O) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events with the given name. - onAlias(Class<EventBusEvent>, String, Observer<EventBusEvent>) - Method in class org.refcodes.eventbus.EventBus
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events with the given name. - onAlias(String, O) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events with the given name. - onAlias(String, Observer<EventBusEvent>) - Method in class org.refcodes.eventbus.EventBus
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events with the given name. - onCatchAll(O) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes all events passing the Event-Bus. - onCatchAll(Observer<EventBusEvent>) - Method in class org.refcodes.eventbus.EventBus
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes all events passing the Event-Bus. - onChannel(Class<E>, String, O) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events for the given channel. - onChannel(Class<EventBusEvent>, String, Observer<EventBusEvent>) - Method in class org.refcodes.eventbus.EventBus
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events for the given channel. - onChannel(String, O) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events for the given channel. - onChannel(String, Observer<EventBusEvent>) - Method in class org.refcodes.eventbus.EventBus
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events for the given channel. - onEvent(Class<?>, O) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events with the given attributes. - onEvent(Class<?>, Observer<EventBusEvent>) - Method in class org.refcodes.eventbus.EventBus
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events with the given attributes. - onEvent(Class<E>, Class<?>, O) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events with the given attributes. - onEvent(Class<E>, Enum<?>, Class<?>, O) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events with the given attributes. - onEvent(Class<E>, Enum<?>, String, String, String, String, Class<?>, O) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events with the given attributes. - onEvent(Class<E>, Enum<?>, String, O) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events with the given attributes. - onEvent(Class<E>, Enum<?>, O) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events with the given attributes. - onEvent(Class<E>, String, String, String, String, Class<?>, O) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events with the given attributes. - onEvent(Class<E>, String, O) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events with the given attributes. - onEvent(Class<EventBusEvent>, Class<?>, Observer<EventBusEvent>) - Method in class org.refcodes.eventbus.EventBus
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events with the given attributes. - onEvent(Class<EventBusEvent>, Enum<?>, Class<?>, Observer<EventBusEvent>) - Method in class org.refcodes.eventbus.EventBus
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events with the given attributes. - onEvent(Class<EventBusEvent>, Enum<?>, String, String, String, String, Class<?>, Observer<EventBusEvent>) - Method in class org.refcodes.eventbus.EventBus
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events with the given attributes. - onEvent(Class<EventBusEvent>, Enum<?>, String, Observer<EventBusEvent>) - Method in class org.refcodes.eventbus.EventBus
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events with the given attributes. - onEvent(Class<EventBusEvent>, Enum<?>, Observer<EventBusEvent>) - Method in class org.refcodes.eventbus.EventBus
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events with the given attributes. - onEvent(Class<EventBusEvent>, String, String, String, String, Class<?>, Observer<EventBusEvent>) - Method in class org.refcodes.eventbus.EventBus
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events with the given attributes. - onEvent(Class<EventBusEvent>, String, Observer<EventBusEvent>) - Method in class org.refcodes.eventbus.EventBus
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events with the given attributes. - onEvent(Enum<?>, Class<?>, O) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events with the given attributes. - onEvent(Enum<?>, Class<?>, Observer<EventBusEvent>) - Method in class org.refcodes.eventbus.EventBus
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events with the given attributes. - onEvent(Enum<?>, String, String, String, String, Class<?>, O) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events with the given attributes. - onEvent(Enum<?>, String, String, String, String, Class<?>, Observer<EventBusEvent>) - Method in class org.refcodes.eventbus.EventBus
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events with the given attributes. - onEvent(Enum<?>, String, O) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events with the given attributes. - onEvent(Enum<?>, String, Observer<EventBusEvent>) - Method in class org.refcodes.eventbus.EventBus
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events with the given attributes. - onEvent(Enum<?>, O) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events with the given attributes. - onEvent(Enum<?>, Observer<EventBusEvent>) - Method in class org.refcodes.eventbus.EventBus
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events with the given attributes. - onEvent(String, String, String, String, Class<?>, O) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events with the given attributes. - onEvent(String, String, String, String, Class<?>, Observer<EventBusEvent>) - Method in class org.refcodes.eventbus.EventBus
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events with the given attributes. - onEvent(String, O) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events with the given attributes. - onEvent(String, Observer<EventBusEvent>) - Method in class org.refcodes.eventbus.EventBus
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events with the given attributes. - onGroup(Class<E>, String, O) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events for the given group. - onGroup(Class<EventBusEvent>, String, Observer<EventBusEvent>) - Method in class org.refcodes.eventbus.EventBus
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events for the given group. - onGroup(String, O) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events for the given group. - onGroup(String, Observer<EventBusEvent>) - Method in class org.refcodes.eventbus.EventBus
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events for the given group. - onType(Class<EVT>, Observer<EVT>) - Method in class org.refcodes.eventbus.EventBus
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events of the given type. - onType(Class<EVT>, Observer<EVT>) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events of the given type. - onUniversalId(Class<E>, String, O) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events for the given Universal-TID. - onUniversalId(Class<EventBusEvent>, String, Observer<EventBusEvent>) - Method in class org.refcodes.eventbus.EventBus
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events for the given Universal-TID. - onUniversalId(String, O) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events for the given Universal-TID. - onUniversalId(String, Observer<EventBusEvent>) - Method in class org.refcodes.eventbus.EventBus
-
Similar to the more generic method
EventBusObservable.subscribe(EventMatcher, Observer)
THOUGH subscribes for events for the given Universal-TID. - or(EventBusEventMatcher...) - Static method in class org.refcodes.eventbus.EventBusSugar
-
Factory method to create an "OR" matcher for the given matchers.
- org.refcodes.eventbus - module org.refcodes.eventbus
- org.refcodes.eventbus - package org.refcodes.eventbus
-
This artifacts implements a lightweight infrastructure for event based decoupled communication.
P
- PARALLEL - Enum constant in enum class org.refcodes.eventbus.DispatchStrategy
-
Each matching observer is invoked in its own thread.
- parallelDispatch(EVT) - Method in class org.refcodes.eventbus.AbstractEventBus
-
Hook implementing the parallel dispatch method as of
DispatchStrategy.PARALLEL
. - parallelDispatchBus() - Static method in class org.refcodes.eventbus.EventBusSugar
-
Constructs the
EventBus
with theDispatchStrategy.PARALLEL
when publishing events: Each matching observer is invoked in its own thread. - parallelDispatchBus(boolean) - Static method in class org.refcodes.eventbus.EventBusSugar
-
Constructs the
EventBus
with theDispatchStrategy.PARALLEL
when publishing events: Each matching observer is invoked in its own thread. - publisherIsAssignableFrom(Class<? extends PT>) - Static method in class org.refcodes.eventbus.EventBusSugar
-
Factory method to create an event matcher by event publisher type.
- publishEvent(E) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Publishes an event using the
DispatchStrategy
as returned byDispatchStrategyAccessor.getDispatchStrategy()
. - publishEvent(E, DispatchStrategy) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Publishes an event using the given
DispatchStrategy
. - publishEvent(EVT, DispatchStrategy) - Method in class org.refcodes.eventbus.AbstractEventBus
-
Publishes an event using the given
DispatchStrategy
. - publishEvent(Class<?>) - Method in class org.refcodes.eventbus.EventBus
-
Fires an event with the according properties.
- publishEvent(Class<?>) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Fires an event with the according properties.
- publishEvent(Class<?>, DispatchStrategy) - Method in class org.refcodes.eventbus.EventBus
-
Fires an event with the according properties.
- publishEvent(Class<?>, DispatchStrategy) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Fires an event with the according properties.
- publishEvent(Enum<?>) - Method in class org.refcodes.eventbus.EventBus
-
Fires an event with the according properties.
- publishEvent(Enum<?>) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Fires an event with the according properties.
- publishEvent(Enum<?>, Class<?>) - Method in class org.refcodes.eventbus.EventBus
-
Fires an event with the according properties.
- publishEvent(Enum<?>, Class<?>) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Fires an event with the according properties.
- publishEvent(Enum<?>, Class<?>, DispatchStrategy) - Method in class org.refcodes.eventbus.EventBus
-
Fires an event with the according properties.
- publishEvent(Enum<?>, Class<?>, DispatchStrategy) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Fires an event with the according properties.
- publishEvent(Enum<?>, String) - Method in class org.refcodes.eventbus.EventBus
-
Fires an event with the according properties.
- publishEvent(Enum<?>, String) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Fires an event with the according properties.
- publishEvent(Enum<?>, String, Class<?>) - Method in class org.refcodes.eventbus.EventBus
-
Fires an event with the according properties.
- publishEvent(Enum<?>, String, Class<?>) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Fires an event with the according properties.
- publishEvent(Enum<?>, String, String, String, String, Class<?>) - Method in class org.refcodes.eventbus.EventBus
-
Fires an event with the according properties.
- publishEvent(Enum<?>, String, String, String, String, Class<?>) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Fires an event with the according properties.
- publishEvent(Enum<?>, String, String, String, String, Class<?>, DispatchStrategy) - Method in class org.refcodes.eventbus.EventBus
-
Fires an event with the according properties.
- publishEvent(Enum<?>, String, String, String, String, Class<?>, DispatchStrategy) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Fires an event with the according properties.
- publishEvent(Enum<?>, String, DispatchStrategy) - Method in class org.refcodes.eventbus.EventBus
-
Fires an event with the according properties.
- publishEvent(Enum<?>, String, DispatchStrategy) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Fires an event with the according properties.
- publishEvent(Enum<?>, META) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Fires an event with the according properties.
- publishEvent(Enum<?>, META, DispatchStrategy) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Fires an event with the according properties.
- publishEvent(Enum<?>, DispatchStrategy) - Method in class org.refcodes.eventbus.EventBus
-
Fires an event with the according properties.
- publishEvent(Enum<?>, DispatchStrategy) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Fires an event with the according properties.
- publishEvent(Enum<?>, EventMetaData) - Method in class org.refcodes.eventbus.EventBus
-
Fires an event with the according properties.
- publishEvent(Enum<?>, EventMetaData, DispatchStrategy) - Method in class org.refcodes.eventbus.EventBus
-
Fires an event with the according properties.
- publishEvent(String) - Method in class org.refcodes.eventbus.EventBus
-
Fires an event with the according properties.
- publishEvent(String) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Fires an event with the according properties.
- publishEvent(String, String, String, String, Class<?>) - Method in class org.refcodes.eventbus.EventBus
-
Fires an event with the according properties.
- publishEvent(String, String, String, String, Class<?>) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Fires an event with the according properties.
- publishEvent(String, String, String, String, Class<?>, DispatchStrategy) - Method in class org.refcodes.eventbus.EventBus
-
Fires an event with the according properties.
- publishEvent(String, String, String, String, Class<?>, DispatchStrategy) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Fires an event with the according properties.
- publishEvent(String, DispatchStrategy) - Method in class org.refcodes.eventbus.EventBus
-
Fires an event with the according properties.
- publishEvent(String, DispatchStrategy) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Fires an event with the according properties.
- publishEvent(META) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Fires an event with the according properties.
- publishEvent(META, DispatchStrategy) - Method in interface org.refcodes.eventbus.EventDispatcher
-
Fires an event with the according properties.
- publishEvent(EventMetaData) - Method in class org.refcodes.eventbus.EventBus
-
Fires an event with the according properties.
- publishEvent(EventMetaData, DispatchStrategy) - Method in class org.refcodes.eventbus.EventBus
-
Fires an event with the according properties.
R
- removeHandle(H) - Method in class org.refcodes.eventbus.AbstractEventBus
S
- SEQUENTIAL - Enum constant in enum class org.refcodes.eventbus.DispatchStrategy
-
The parent (invoker) thread is used to publish the parent's event as well as the child events published by the matching observers of the parent event (and so on, in case them use
DispatchStrategy.SEQUENTIAL
as well). - sequentialDispatch(EVT) - Method in class org.refcodes.eventbus.AbstractEventBus
-
Hook implementing the sequential dispatch method as of
DispatchStrategy.SEQUENTIAL
. - sequentialDispatchBus() - Static method in class org.refcodes.eventbus.EventBusSugar
-
Constructs the
EventBus
with theDispatchStrategy.SEQUENTIAL
when publishing events: The parent (invoker) thread is used to publish the parent's event as well as the child events published by the matching observers of the parent event (and so on, in case them useDispatchStrategy.SEQUENTIAL
as well). - sequentialDispatchBus(boolean) - Static method in class org.refcodes.eventbus.EventBusSugar
-
Constructs the
EventBus
with theDispatchStrategy.SEQUENTIAL
when publishing events: The parent (invoker) thread is used to publish the parent's event as well as the child events published by the matching observers of the parent event (and so on, in case them useDispatchStrategy.SEQUENTIAL
as well). - setDispatchStrategy(DispatchStrategy) - Method in interface org.refcodes.eventbus.DispatchStrategyAccessor.DispatchStrategyMutator
-
Sets the
DispatchStrategy
property for the property. - subscribe(Class<EVT>, MATCH, Observer<EVT>) - Method in interface org.refcodes.eventbus.EventBusObservable
-
Subscribes a listener to the event bus.
- subscribe(Class<EVT>, EventBusEventMatcher, Observer<EVT>) - Method in class org.refcodes.eventbus.EventBus
-
Subscribes a listener to the event bus.
- subscribe(Class<EVT>, Observer<EVT>) - Method in class org.refcodes.eventbus.EventBus
-
Subscribes a listener to the event bus.
- subscribe(Class<EVT>, Observer<EVT>) - Method in interface org.refcodes.eventbus.EventBusObservable
-
Subscribes a listener to the event bus.
- subscribe(MATCH, O) - Method in class org.refcodes.eventbus.AbstractEventBus
-
Subscribes a listener to the event bus.
- subscribe(MATCH, O) - Method in interface org.refcodes.eventbus.EventBusObservable
-
Subscribes a listener to the event bus.
U
- uidIdEqualWith(String) - Static method in class org.refcodes.eventbus.EventBusSugar
-
Factory method to create an "EQUAL WITH" matcher for the given UID compared with the UID stored in the
EventMetaData
. - unsubscribeAll(O) - Method in class org.refcodes.eventbus.AbstractEventBus
-
Unsubscribes all registrations to a specific listener, even if that listener is involved in several subscriptions.
- unsubscribeAll(O) - Method in interface org.refcodes.eventbus.EventBusObservable
-
Unsubscribes all registrations to a specific listener, even if that listener is involved in several subscriptions.
V
- valueOf(String) - Static method in enum class org.refcodes.eventbus.DispatchStrategy
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class org.refcodes.eventbus.DispatchStrategy
-
Returns an array containing the constants of this enum class, in the order they are declared.
W
- withAction(Enum<?>) - Method in class org.refcodes.eventbus.EventBusEvent.Builder
- withAlias(String) - Method in class org.refcodes.eventbus.EventBusEvent.Builder
- withChannel(String) - Method in class org.refcodes.eventbus.EventBusEvent.Builder
- withGroup(String) - Method in class org.refcodes.eventbus.EventBusEvent.Builder
- withMetaData(EventMetaData) - Method in class org.refcodes.eventbus.EventBusEvent.Builder
-
Merges all not-null values of the provided
EventMetaData
instance into thisEventBusEvent.Builder
instance. - withPublisherType(Class<?>) - Method in class org.refcodes.eventbus.EventBusEvent.Builder
- withSource(EventBus) - Method in class org.refcodes.eventbus.EventBusEvent.Builder
- withUniversalId(String) - Method in class org.refcodes.eventbus.EventBusEvent.Builder
All Classes and Interfaces|All Packages