Interface IGateManagedListener
-
- All Known Implementing Classes:
AbstractGateManagedListener
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 theIEventGate.onIncomingEvent()
method.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
dispose()
Disposes the listener.void
setEventGate(IEventGate eventGate)
Sets the event gate which will manage this listener.void
startListening()
Makes the listener start listening to external events.void
stopListening()
Makes the listener stop listening to external events.
-
-
-
Method Detail
-
setEventGate
void setEventGate(IEventGate eventGate)
Sets the event gate which will manage this listener.- Parameters:
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.
-
-