Interface EventConsumer

  • All Known Subinterfaces:
    DisconnectableEventConsumer, EngineManagement

    public interface EventConsumer
    An EventConsumer can connect to the Engine through an EventSupplier and register to receive events. In order to receive events from the Engine, a developer must implement this interface and define its sendEvents method. This method is called by the EventSupplier when events are emitted from the Engine.
    • Method Detail

      • sendEvents

        void sendEvents​(Event[] events)
                 throws EngineException
        This method must be defined in implementing classes to enable receiving of events. This method is called by an EventSupplier.
        Parameters:
        events - An array of Event objects.
        Throws:
        EngineException