Uses of Interface
javax.ws.rs.sse.SseEventSink
-
Packages that use SseEventSink Package Description javax.ws.rs.sse Server-Sent Events related API. -
-
Uses of SseEventSink in javax.ws.rs.sse
Methods in javax.ws.rs.sse with parameters of type SseEventSink Modifier and Type Method Description void
SseBroadcaster. register(SseEventSink sseEventSink)
Register providedSseEventSink
instance to thisSseBroadcaster
.Method parameters in javax.ws.rs.sse with type arguments of type SseEventSink 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 callingclose()
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.
-