public interface SseEventOutput extends Closeable
| Modifier and Type | Method and Description |
|---|---|
boolean |
isClosed()
Check if the stream has been closed already.
|
void |
write(OutboundSseEvent event)
Write a new outbound SSE event.
|
void write(OutboundSseEvent event) throws IOException
event - an outbound SSE event instance to be written.IOException - if this response is closed or when encountered any problem during serializing or writing a chunk.boolean isClosed()
SseEventOutput can be closed by the client side when
a client decides to close connection and disconnect from the server.true when closed, false otherwise.Copyright © 1996-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.