Interface EventListener


  • public interface EventListener
    Defines a client notification interface for events stream.
    • Method Detail

      • notify

        void notify​(Event event)
        Notify the listener of a new event. Returned data is a Event object.
        Parameters:
        event - object representation of the latest stream event
      • eventStreamClosed

        void eventStreamClosed​(int code,
                               String phrase)
        Notify the listener that the backing event stream was closed. Listener may need to recreate the event stream or take other actions.
        Parameters:
        code - an integer code to represent the reason for closing
        phrase - a String representation of code