Interface QueryEventBus

All Known Implementing Classes:
QueryEventBusImpl

public interface QueryEventBus
Handle and manage incoming events
Author:
Thito Yalasatria Sunarya
  • Method Details

    • addParent

      void addParent(QueryEventBus eventBus)
      Add parent that listen to this event manager
      Parameters:
      eventBus -
    • removeParent

      void removeParent(QueryEventBus eventBus)
      Remove a parent, become an orphan
      Parameters:
      eventBus -
    • dispatchConnectionState

      void dispatchConnectionState(QueryConnection connection)
      Dispatch a Connection State change event
      Parameters:
      connection -
    • dispatchMessage

      void dispatchMessage(QueryConnection connection, String channel, byte[] message)
      Dispatch a Query Message received event
      Parameters:
      connection -
      channel -
      message -
    • registerListener

      void registerListener(QueryListener listener)
      Register a listener
      Parameters:
      listener -
    • unregisterListener

      void unregisterListener(QueryListener listener)
      Unregister a listener
      Parameters:
      listener -
    • registerListener

      default void registerListener(QueryMessageListener listener)
      Register a message listener
      Parameters:
      listener -
    • registerListener

      default void registerListener(QueryConnectionStateListener listener)
      Register a connection state change listener
      Parameters:
      listener -