Class ApplicationBusImpl
- java.lang.Object
-
- org.refcodes.eventbus.AbstractEventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.observer.EventMetaData,java.lang.String>
-
- org.refcodes.eventbus.ext.application.ApplicationBusImpl
-
- All Implemented Interfaces:
org.refcodes.component.HandleLookup<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>>
,org.refcodes.eventbus.DispatchStrategyAccessor
,ApplicationBus
,DestroyBus
,ExceptionBus
,InitializeBus
,LifeCycleBus
,MessageBus
,PauseBus
,PayloadBus
,PropertiesBus
,ResumeBus
,StartBus
,StopBus
,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,java.lang.String>
,org.refcodes.matcher.Matcher<ApplicationEvent>
,org.refcodes.observer.EventMatcher<ApplicationEvent>
,org.refcodes.observer.Publisher<ApplicationEvent>
public class ApplicationBusImpl extends org.refcodes.eventbus.AbstractEventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.observer.EventMetaData,java.lang.String> implements ApplicationBus
ApplicationBusImpl
implements theApplicationBus
, extending theApplicationBus
with convenience functionality common to everyday application and service development.
-
-
Constructor Summary
Constructors Constructor Description ApplicationBusImpl()
Constructs theApplicationBus
with theDispatchStrategy
beingDispatchStrategy.CASCADE
when publishing events.ApplicationBusImpl(int aCorePoolSize)
Constructs theApplicationBus
with theDispatchStrategy
beingDispatchStrategy.CASCADE
when publishing events.ApplicationBusImpl(java.util.concurrent.ExecutorService aExecutorService)
Constructs theApplicationBus
with theDispatchStrategy
beingDispatchStrategy.CASCADE
when publishing events.ApplicationBusImpl(org.refcodes.eventbus.DispatchStrategy aDispatchStrategy)
Constructs theApplicationBus
with the givenDispatchStrategy
when publishing events.ApplicationBusImpl(org.refcodes.eventbus.DispatchStrategy aDispatchStrategy, int aCorePoolSize)
Constructs theApplicationBus
with the givenDispatchStrategy
when publishing events.ApplicationBusImpl(org.refcodes.eventbus.DispatchStrategy aDispatchStrategy, java.util.concurrent.ExecutorService aExecutorService)
Constructs theApplicationBus
with theDispatchStrategy
beingDispatchStrategy.CASCADE
when publishing events.
-
Method Summary
-
Methods inherited from class org.refcodes.eventbus.AbstractEventBus
cascadeDispatch, getDispatchStrategy, hasHandle, isMatching, lookupHandle, parallelDispatch, publishEvent, removeHandle, sequentialDispatch, subscribe, unsubscribeAll
-
Methods inherited from interface org.refcodes.eventbus.ext.application.ApplicationBus
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, subscribe, subscribe
-
Methods inherited from interface org.refcodes.eventbus.ext.application.DestroyBus
onDestroy, onDestroy, onDestroy, onDestroy, onDestroy, onDestroy, onDestroy, onDestroy, publishDestroy, publishDestroy, publishDestroy, publishDestroy, publishDestroy, publishDestroy, publishDestroy, publishDestroy, publishDestroy, publishDestroy
-
Methods inherited from interface org.refcodes.eventbus.ext.application.ExceptionBus
onException, onException, onException, onException, onException, onException, onException, onException, publishException, publishException, publishException, publishException, publishException, publishException, publishException, publishException, publishException, publishException, publishException, publishException, publishException, publishException, publishException, publishException, publishException, publishException, publishException, publishException
-
Methods inherited from interface org.refcodes.eventbus.GenericBusObservable
subscribe, unsubscribeAll
-
Methods inherited from interface org.refcodes.component.HandleLookup
hasHandle, lookupHandle, removeHandle
-
Methods inherited from interface org.refcodes.eventbus.ext.application.InitializeBus
onInitialize, onInitialize, onInitialize, onInitialize, onInitialize, onInitialize, onInitialize, onInitialize, publishInitialize, publishInitialize, publishInitialize, publishInitialize, publishInitialize, publishInitialize, publishInitialize, publishInitialize, publishInitialize, publishInitialize, publishInitialize, publishInitialize, publishInitialize, publishInitialize, publishInitialize, publishInitialize, publishInitialize, publishInitialize, publishInitialize, publishInitialize
-
Methods inherited from interface org.refcodes.eventbus.ext.application.LifeCycleBus
onLifeCycle, onLifeCycle, onLifeCycle, onLifeCycle, onLifeCycle, onLifeCycle, onLifeCycle, onLifeCycle
-
Methods inherited from interface org.refcodes.eventbus.ext.application.MessageBus
onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, publishMessage, publishMessage, publishMessage, publishMessage, publishMessage, publishMessage, publishMessage, publishMessage, publishMessage, publishMessage, publishMessage, publishMessage, publishMessage, publishMessage, publishMessage, publishMessage, publishMessage, publishMessage, publishMessage, publishMessage
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.refcodes.eventbus.ext.application.PauseBus
onPause, onPause, onPause, onPause, onPause, onPause, onPause, onPause, publishPause, publishPause, publishPause, publishPause, publishPause, publishPause, publishPause, publishPause, publishPause, publishPause
-
Methods inherited from interface org.refcodes.eventbus.ext.application.PayloadBus
onPayload, onPayload, onPayload, onPayload, onPayload, onPayload, onPayload, onPayload, publishPayload, publishPayload, publishPayload, publishPayload, publishPayload, publishPayload, publishPayload, publishPayload, publishPayload, publishPayload, publishPayload, publishPayload, publishPayload, publishPayload, publishPayload, publishPayload, publishPayload, publishPayload, publishPayload, publishPayload
-
Methods inherited from interface org.refcodes.eventbus.ext.application.PropertiesBus
onProperties, onProperties, onProperties, onProperties, onProperties, onProperties, onProperties, onProperties, publishProperties, publishProperties, publishProperties, publishProperties, publishProperties, publishProperties, publishProperties, publishProperties, publishProperties, publishProperties, publishProperties, publishProperties, publishProperties, publishProperties, publishProperties, publishProperties, publishProperties, publishProperties, publishProperties, publishProperties
-
Methods inherited from interface org.refcodes.eventbus.ext.application.ResumeBus
onResume, onResume, onResume, onResume, onResume, onResume, onResume, onResume, publishResume, publishResume, publishResume, publishResume, publishResume, publishResume, publishResume, publishResume, publishResume, publishResume
-
Methods inherited from interface org.refcodes.eventbus.ext.application.StartBus
onStart, onStart, onStart, onStart, onStart, onStart, onStart, onStart, publishStart, publishStart, publishStart, publishStart, publishStart, publishStart, publishStart, publishStart, publishStart, publishStart
-
Methods inherited from interface org.refcodes.eventbus.ext.application.StopBus
onStop, onStop, onStop, onStop, onStop, onStop, onStop, onStop, publishStop, publishStop, publishStop, publishStop, publishStop, publishStop, publishStop, publishStop, publishStop, publishStop
-
-
-
-
Constructor Detail
-
ApplicationBusImpl
public ApplicationBusImpl()
Constructs theApplicationBus
with theDispatchStrategy
beingDispatchStrategy.CASCADE
when publishing events.
-
ApplicationBusImpl
public ApplicationBusImpl(java.util.concurrent.ExecutorService aExecutorService)
Constructs theApplicationBus
with theDispatchStrategy
beingDispatchStrategy.CASCADE
when publishing events.- Parameters:
aExecutorService
- THeExecutorService
to be used when creating threads.
-
ApplicationBusImpl
public ApplicationBusImpl(org.refcodes.eventbus.DispatchStrategy aDispatchStrategy)
Constructs theApplicationBus
with the givenDispatchStrategy
when publishing events.- Parameters:
aDispatchStrategy
- THeDispatchStrategy
to be used when publishing events.
-
ApplicationBusImpl
public ApplicationBusImpl(org.refcodes.eventbus.DispatchStrategy aDispatchStrategy, java.util.concurrent.ExecutorService aExecutorService)
Constructs theApplicationBus
with theDispatchStrategy
beingDispatchStrategy.CASCADE
when publishing events.- Parameters:
aDispatchStrategy
- THeDispatchStrategy
to be used when publishing events.aExecutorService
- THeExecutorService
to be used when creating threads.
-
ApplicationBusImpl
public ApplicationBusImpl(int aCorePoolSize)
Constructs theApplicationBus
with theDispatchStrategy
beingDispatchStrategy.CASCADE
when publishing events.- Parameters:
aCorePoolSize
- The number of threads to keep in the pool, even if they are idle.
-
ApplicationBusImpl
public ApplicationBusImpl(org.refcodes.eventbus.DispatchStrategy aDispatchStrategy, int aCorePoolSize)
Constructs theApplicationBus
with the givenDispatchStrategy
when publishing events.- Parameters:
aCorePoolSize
- The number of threads to keep in the pool, even if they are idle.aDispatchStrategy
- THeDispatchStrategy
to be used when publishing events.
-
-