Interface EventStream

    • Method Summary

      Modifier and Type Method Description
      void cancel()
      Cancels the underlying connection to the current stream.
      void close()
      Close the current stream.
      boolean isOpen()
      Whether or not the stream is currently open.
      Event nextEvent()
      The next event in this event stream.
    • Method Detail

      • nextEvent

        Event nextEvent()
                 throws IOException
        The next event in this event stream.
        Returns:
        next event in this stream
        Throws:
        IOException - general i/o related errors
      • isOpen

        boolean isOpen()
        Whether or not the stream is currently open.
        Returns:
        true if open, false if not
      • close

        void close()
            throws IOException
        Close the current stream.
        Throws:
        IOException - can throw exception if internal buffer not closed properly
      • cancel

        void cancel()
        Cancels the underlying connection to the current stream.