Package | Description |
---|---|
javax.ws.rs.sse |
Server-Sent Events related API.
|
Modifier and Type | Method and Description |
---|---|
OutboundSseEvent.Builder |
OutboundSseEvent.Builder.comment(String comment)
Set comment string associated with the event.
|
OutboundSseEvent.Builder |
OutboundSseEvent.Builder.data(Class type,
Object data)
Set event data and java type of event data.
|
OutboundSseEvent.Builder |
OutboundSseEvent.Builder.data(GenericType type,
Object data)
Set event data and a generic java type of event data.
|
OutboundSseEvent.Builder |
OutboundSseEvent.Builder.data(Object data)
Set event data and java type of event data.
|
OutboundSseEvent.Builder |
OutboundSseEvent.Builder.id(String id)
Set the event id.
|
OutboundSseEvent.Builder |
OutboundSseEvent.Builder.mediaType(MediaType mediaType)
Set the
media type of the event data. |
OutboundSseEvent.Builder |
OutboundSseEvent.Builder.name(String name)
Set event name.
|
OutboundSseEvent.Builder |
Sse.newEventBuilder()
Get a new outbound event builder.
|
OutboundSseEvent.Builder |
OutboundSseEvent.Builder.reconnectDelay(long milliseconds)
Set reconnection delay (in milliseconds) that indicates how long the event receiver should wait
before attempting to reconnect in case a connection to SSE event source is lost.
|
Copyright © 2019 Eclipse Foundation.
Use is subject to license terms.