Class EventBusInfrastructure

java.lang.Object
it.rebirthproject.ufoeb.architecture.eventbus.EventBusInfrastructure

final class EventBusInfrastructure extends Object
The data structures composing the infrastructure of the EventBus.
  • Field Details

  • Constructor Details

    • EventBusInfrastructure

      EventBusInfrastructure(ListenerMethodFinder listenerMethodFinder, InheritancePolicy inheritancePolicy, int queueLength, int numberOfWorkers, boolean safeRegistrationsListNeeded, boolean throwNoRegistrationsWarning, boolean verboseLogging)
      The constructor used to build the EventBusInfrastructure
      Parameters:
      listenerMethodFinder - The ListenerMethodFinder is a service used to retrieve registered listeners methods annotated with Listen and to store them inside the MemoryState
      inheritancePolicy - The event InheritancePolicy used by the bus
      numberOfWorkers - The number of workers (EventExecutors) used by the bus behind the scenes to deliver events.
      safeRegistrationsListNeeded - is used when you want to use inheritance over a listener and all its superclasses. Enabling it will let the bus look for all listeners' methods considering also all their superclasses methods.
      throwNoRegistrationsWarning - A boolean which defines if it's needed to throw warnings when no registrations are found for a specific event
      verboseLogging - Boolean parameter set to true if a more verbose logging is needed
      See Also:
  • Method Details