Class EventConsumer<DataT>

  • All Implemented Interfaces:
    java.util.function.Consumer<Event<DataT>>

    public abstract class EventConsumer<DataT>
    extends java.lang.Object
    implements java.util.function.Consumer<Event<DataT>>
    The class that is used to consume events from an SSE stream
    • Constructor Summary

      Constructors 
      Constructor Description
      EventConsumer()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isStop()
      Indicates if the consumer has requested to stop processing events
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Consumer

        accept, andThen
    • Constructor Detail

      • EventConsumer

        public EventConsumer()
    • Method Detail

      • isStop

        public boolean isStop()
        Indicates if the consumer has requested to stop processing events
        Returns:
        true if event processing should stop otherwise false