Interface EventsDispatcher

All Known Implementing Classes:
EventsDispatcherImpl

public interface EventsDispatcher
Events API requests dispatcher.
  • Method Details

    • isRunning

      boolean isRunning()
    • isEmpty

      boolean isEmpty()
    • register

      void register(EventHandler<? extends EventsApiPayload<?>> handler)
      Registers a new EventHandler.
    • deregister

      void deregister(EventHandler<? extends EventsApiPayload<?>> handler)
      Removes an EventHandler.
    • dispatch

      void dispatch(String json)
      Dispatches requests to appropriate event handlers.
    • enqueue

      void enqueue(String json)
      Enqueues a JSON payload to the internal queue.
    • start

      void start()
      Starts the internal thread to handle requests.
    • stop

      void stop()
      Stops the internal thread to handle requests.