Interface IGateManagedListener

  • All Known Implementing Classes:

    public interface IGateManagedListener
    An event listener managed by an event gate. Implementations are supposed to subscribe to an external event source, and on receiving an event from the source, they must notify the gate that is managing this listener by calling the IEventGate.onIncomingEvent() method.
    • Method Detail

      • setEventGate

        void setEventGate​(IEventGate eventGate)
        Sets the event gate which will manage this listener.
        eventGate - the event gate
      • startListening

        void startListening()
        Makes the listener start listening to external events.
      • stopListening

        void stopListening()
        Makes the listener stop listening to external events.
      • dispose

        void dispose()
        Disposes the listener.