public interface SseEventInput extends Closeable
The input stream lets you serially read & consume SSE events as they arrive.
| Modifier and Type | Method and Description |
|---|---|
boolean |
isClosed()
Check if the chunked input has been closed.
|
InboundSseEvent |
read()
Read next SSE event from the response stream and convert it to a Java instance of
InboundSseEvent type. |
boolean isClosed()
true if this chunked input has been closed, false otherwise.InboundSseEvent read() throws IllegalStateException
InboundSseEvent type.
The method returns null if the underlying entity input stream has been closed (either implicitly or explicitly
by calling the Closeable.close() method).
Note: This operation is not thread-safe and has to be explicitly synchronized in case it is used from multiple threads.
null if the underlying entity input stream has been closed while reading
the next event data.IllegalStateException - in case this chunked input has been closed.Copyright © 1996-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.