Package | Description |
---|---|
javax.ws.rs.sse |
Server-Sent Events related API.
|
Modifier and Type | Method | Description |
---|---|---|
void |
SseBroadcaster.register(SseEventSink sseEventSink) |
Register provided
SseEventSink instance to this SseBroadcaster . |
Modifier and Type | Method | 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 (c) 2019 Eclipse Foundation. Licensed under Eclipse Foundation Specification License.