java.lang.Object
org.refcodes.eventbus.AbstractEventBus<ApplicationBusEvent,org.refcodes.observer.Observer<ApplicationBusEvent>,ApplicationEventMatcher,org.refcodes.mixin.EventMetaData,String>
org.refcodes.eventbus.ext.application.ApplicationBusImpl
All Implemented Interfaces:
org.refcodes.component.Destroyable, org.refcodes.component.HandleLookup<String,org.refcodes.observer.Observer<ApplicationBusEvent>>, org.refcodes.eventbus.DispatchStrategyAccessor, org.refcodes.eventbus.EventBusObservable<ApplicationBusEvent,org.refcodes.observer.Observer<ApplicationBusEvent>,ApplicationEventMatcher,String>, org.refcodes.eventbus.EventBusPublisher<ApplicationBusEvent>, ApplicationBus, DestroyBus, ExceptionBus, InitializeBus, LifecycleBus, MessageBus, PauseBus, PayloadBus, PropertiesBus, ResumeBus, StartBus, StopBus, org.refcodes.eventbus.GenericEventBus<ApplicationBusEvent,org.refcodes.observer.Observer<ApplicationBusEvent>,ApplicationEventMatcher,org.refcodes.mixin.EventMetaData,String>, org.refcodes.matcher.Matchable<ApplicationBusEvent>, org.refcodes.observer.Publisher<ApplicationBusEvent>

public class ApplicationBusImpl extends org.refcodes.eventbus.AbstractEventBus<ApplicationBusEvent,org.refcodes.observer.Observer<ApplicationBusEvent>,ApplicationEventMatcher,org.refcodes.mixin.EventMetaData,String> implements ApplicationBus
ApplicationBusImpl implements the ApplicationBus, extending the ApplicationBus with convenience functionality common to everyday application and service development.
  • Constructor Details

    • ApplicationBusImpl

      public ApplicationBusImpl()
      Constructs the ApplicationBus with the DispatchStrategy being DispatchStrategy.CASCADE when publishing events.
    • ApplicationBusImpl

      public ApplicationBusImpl(boolean isDaemon)
      Constructs the ApplicationBus with the DispatchStrategy being DispatchStrategy.CASCADE when publishing events.
      Parameters:
      isDaemon - True when to create daemon dispatch Thread instances (shutdown upon last application Thread shutdown), else application Thread instances are created for dispatch.
    • ApplicationBusImpl

      public ApplicationBusImpl(ExecutorService aExecutorService)
      Constructs the ApplicationBus with the DispatchStrategy being DispatchStrategy.CASCADE when publishing events.
      Parameters:
      aExecutorService - The ExecutorService to be used when creating threads.
    • ApplicationBusImpl

      public ApplicationBusImpl(org.refcodes.eventbus.DispatchStrategy aDispatchStrategy)
      Constructs the ApplicationBus with the given DispatchStrategy when publishing events.
      Parameters:
      aDispatchStrategy - The DispatchStrategy to be used when publishing events.
    • ApplicationBusImpl

      public ApplicationBusImpl(org.refcodes.eventbus.DispatchStrategy aDispatchStrategy, boolean isDaemon)
      Constructs the ApplicationBus with the given DispatchStrategy when publishing events.
      Parameters:
      aDispatchStrategy - The DispatchStrategy to be used when publishing events.
      isDaemon - True when to create daemon dispatch Thread instances (shutdown upon last application Thread shutdown), else application Thread instances are created for dispatch.
    • ApplicationBusImpl

      public ApplicationBusImpl(org.refcodes.eventbus.DispatchStrategy aDispatchStrategy, ExecutorService aExecutorService)
      Constructs the ApplicationBus with the DispatchStrategy being DispatchStrategy.CASCADE when publishing events.
      Parameters:
      aDispatchStrategy - The DispatchStrategy to be used when publishing events.
      aExecutorService - The ExecutorService to be used when creating threads.