Package | Description |
---|---|
jakarta.ws.rs.sse |
Server-Sent Events related API.
|
Modifier and Type | Method and 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 and 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 © 2018,2020 Eclipse Foundation.
Use is subject to license terms.