Uses of Interface
jakarta.ws.rs.sse.SseEventSink
Package | Description |
---|---|
jakarta.ws.rs.sse |
Server-Sent Events related API.
|
-
Uses of SseEventSink in jakarta.ws.rs.sse
Methods in jakarta.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 jakarta.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 this SseBroadcaster closes a given eventSseEventSink
or tries to write to a givenSseEventSink
that is already 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 is thrown by a givenSseEventSink
when this SseBroadcaster tries to write to it or close it.