Interface IEventGate
-
- All Known Implementing Classes:
EventGate
public interface IEventGate
An event gate that can be externally activated or deactivated and allows to register managed event listeners.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
activate()
Activates the gate.void
addEventListener(IGateManagedListener eventListener)
Adds a managed event listener to the manager.void
deactivate()
Deactivates the gate.void
dispose()
Disposes the gate.void
onIncomingEvent()
Notifies the gate that one of its managed listeners has received an incoming event.void
removeEventListener(IGateManagedListener eventListener)
Removes a managed event listener from the manager.
-
-
-
Method Detail
-
addEventListener
void addEventListener(IGateManagedListener eventListener)
Adds a managed event listener to the manager.- Parameters:
eventListener
- the managed event listener to add
-
removeEventListener
void removeEventListener(IGateManagedListener eventListener)
Removes a managed event listener from the manager.- Parameters:
eventListener
- the managed event listener to remove
-
onIncomingEvent
void onIncomingEvent()
Notifies the gate that one of its managed listeners has received an incoming event.
-
dispose
void dispose()
Disposes the gate.
-
activate
void activate()
Activates the gate.
-
deactivate
void deactivate()
Deactivates the gate.
-
-