Class EventGate

  • All Implemented Interfaces:
    IEventGate

    public abstract class EventGate
    extends Object
    implements IEventGate
    Standard event gate.
    • Constructor Detail

      • EventGate

        public EventGate()
        Constructs an event gate in open state.
    • Method Detail

      • onIncomingEvent

        public void onIncomingEvent()
        Description copied from interface: IEventGate
        Notifies the gate that one of its managed listeners has received an incoming event.
        Specified by:
        onIncomingEvent in interface IEventGate
      • addEventListener

        public void addEventListener​(IGateManagedListener eventListener)
        Description copied from interface: IEventGate
        Adds a managed event listener to the manager.
        Specified by:
        addEventListener in interface IEventGate
        Parameters:
        eventListener - the managed event listener to add
      • removeEventListener

        public void removeEventListener​(IGateManagedListener eventGate)
        Description copied from interface: IEventGate
        Removes a managed event listener from the manager.
        Specified by:
        removeEventListener in interface IEventGate
        Parameters:
        eventGate - the managed event listener to remove
      • activate

        public void activate()
        Description copied from interface: IEventGate
        Activates the gate.
        Specified by:
        activate in interface IEventGate
      • deactivate

        public void deactivate()
        Description copied from interface: IEventGate
        Deactivates the gate.
        Specified by:
        deactivate in interface IEventGate
      • dispose

        public void dispose()
        Description copied from interface: IEventGate
        Disposes the gate.
        Specified by:
        dispose in interface IEventGate
      • reopen

        protected abstract void reopen()
        Handles the transition from CLOSED into OPENED state.
      • close

        protected abstract void close()
        Handles the transition into CLOSED state.