Class ApplicationBusImpl

    • Constructor Detail

      • 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.