Package | Description |
---|---|
javax.ws.rs.sse |
Server-Sent Events related API.
|
Modifier and Type | Method and Description |
---|---|
void |
SseBroadcaster.register(SseEventSink sseEventSink)
Register provided
SseEventSink instance to this SseBroadcaster . |
Modifier and Type | Method and Description |
---|---|
void |
SseBroadcaster.onClose(Consumer<SseEventSink> onClose)
Register a listener, which will be called when the SSE event output has been closed (either by client closing
the connection or by calling
close() on the server side. |
void |
SseBroadcaster.onError(BiConsumer<SseEventSink,Throwable> onError)
Register a listener, which will be called when an exception was thrown by a given SSE event output when trying
to write to it or close it.
|
Copyright © 1996-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.