Interface EventDistributor

All Known Implementing Classes:
AutoEventDistributor, BasicEventDistributor, MonitoringEventDistributor

public interface EventDistributor
  • Method Details

    • registerHandler

      void registerHandler(EventHandler<Event> handler)
      Register event handler that will accept all event classes.
      Parameters:
      handler - The handler
    • registerHandler

      default <Y extends Event> void registerHandler(Class<Y> clazz, EventHandler<? super Y> handler)
      Register event handler and automatically filter to a particular class.
      Type Parameters:
      Y - Type of event
      Parameters:
      clazz - Type of event
      handler - The handler
    • acceptEvent

      void acceptEvent(Event event)
    • setQueue

      void setQueue(EventQueue queue)
    • getStateStore

      StateStore getStateStore()