Package | Description |
---|---|
javax.ws.rs.sse |
Server-Sent Events related API.
|
Modifier and Type | Method | Description |
---|---|---|
OutboundSseEvent |
OutboundSseEvent.Builder.build() |
Build
OutboundSseEvent . |
default OutboundSseEvent |
Sse.newEvent(String data) |
Create new
OutboundSseEvent from provided data. |
default OutboundSseEvent |
Sse.newEvent(String name,
String data) |
Create new
OutboundSseEvent from provided data and name. |
Modifier and Type | Method | Description |
---|---|---|
CompletionStage<?> |
SseBroadcaster.broadcast(OutboundSseEvent event) |
Publish an SSE event to all registered
SseEventSink instances. |
CompletionStage<?> |
SseEventSink.send(OutboundSseEvent event) |
Send an outbound Server-sent event to this sink.
|
Copyright (c) 2019 Eclipse Foundation. Licensed under Eclipse Foundation Specification License.