public class EventBusImpl extends AbstractEventBus<BusEvent,org.refcodes.observer.Observer<BusEvent>,BusMatcher,String> implements EventBus
EventBusImpl
is a ready to use implementation of a
EventBus
using a default DispatchStrategy
being
DispatchStrategy.CASCADE
and extending the AbstractEventBus
.DispatchStrategyAccessor.DispatchStrategyMutator, DispatchStrategyAccessor.DispatchStrategyProperty
Constructor and Description |
---|
EventBusImpl()
Constructs the
EventBus with the DispatchStrategy being
DispatchStrategy.CASCADE when publishing events. |
EventBusImpl(DispatchStrategy aDispatchStrategy)
Constructs the
EventBus with the given DispatchStrategy
when publishing events. |
EventBusImpl(DispatchStrategy aDispatchStrategy,
ExecutorService aExecutorService)
Constructs the
EventBus with the DispatchStrategy being
DispatchStrategy.CASCADE when publishing events. |
EventBusImpl(DispatchStrategy aDispatchStrategy,
int aCorePoolSize)
Constructs the
EventBus with the given DispatchStrategy
when publishing events. |
EventBusImpl(ExecutorService aExecutorService)
Constructs the
EventBus with the DispatchStrategy being
DispatchStrategy.CASCADE when publishing events. |
EventBusImpl(int aCorePoolSize)
Constructs the
EventBus with the DispatchStrategy being
DispatchStrategy.CASCADE when publishing events. |
cascadeDispatch, getDispatchStrategy, hasHandle, isMatching, lookupHandle, parallelDispatch, publishEvent, removeHandle, sequentialDispatch, subscribe, unsubscribeAll
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onAction, onAction, onCatchAll, onChannel, onChannel, onEvent, onEvent, onEvent, onEvent, onEvent, onEvent, onEvent, onEvent, onEvent, onEvent, onEvent, onEvent, onEvent, onEvent, onGroup, onGroup, onName, onName, onType, onUniversalId, onUniversalId, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, subscribe
publishEvent, publishEvent
subscribe, unsubscribeAll
hasHandle, lookupHandle, removeHandle
getDispatchStrategy
public EventBusImpl()
EventBus
with the DispatchStrategy
being
DispatchStrategy.CASCADE
when publishing events.public EventBusImpl(ExecutorService aExecutorService)
EventBus
with the DispatchStrategy
being
DispatchStrategy.CASCADE
when publishing events.aExecutorService
- THe ExecutorService
to be used when
creating threads.public EventBusImpl(DispatchStrategy aDispatchStrategy)
EventBus
with the given DispatchStrategy
when publishing events.aDispatchStrategy
- THe DispatchStrategy
to be used when
publishing events.public EventBusImpl(DispatchStrategy aDispatchStrategy, ExecutorService aExecutorService)
EventBus
with the DispatchStrategy
being
DispatchStrategy.CASCADE
when publishing events.aDispatchStrategy
- THe DispatchStrategy
to be used when
publishing events.aExecutorService
- THe ExecutorService
to be used when
creating threads.public EventBusImpl(int aCorePoolSize)
EventBus
with the DispatchStrategy
being
DispatchStrategy.CASCADE
when publishing events.aCorePoolSize
- The number of threads to keep in the pool, even if
they are idle.public EventBusImpl(DispatchStrategy aDispatchStrategy, int aCorePoolSize)
EventBus
with the given DispatchStrategy
when publishing events.aCorePoolSize
- The number of threads to keep in the pool, even if
they are idle.aDispatchStrategy
- THe DispatchStrategy
to be used when
publishing events.Copyright © 2018. All rights reserved.