Interface EventStream
-
- All Known Implementing Classes:
OkHttpEventStream
public interface EventStream
-
-
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.
-
-