Package | Description |
---|---|
javax.ws.rs.sse |
Server-Sent Events related API.
|
org.jboss.resteasy.plugins.providers.sse |
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.
|
Modifier and Type | Class and Description |
---|---|
class |
SseEventOutputImpl |
Modifier and Type | Method and Description |
---|---|
long |
SseEventOutputProvider.getSize(SseEventSink output,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
void |
SseBroadcasterImpl.register(SseEventSink sseEventSink) |
void |
SseEventOutputProvider.writeTo(SseEventSink output,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
Modifier and Type | Method and Description |
---|---|
void |
SseBroadcasterImpl.onClose(Consumer<SseEventSink> onClose) |
void |
SseBroadcasterImpl.onError(BiConsumer<SseEventSink,Throwable> onError) |
Copyright © 2019 JBoss by Red Hat. All rights reserved.