Uses of Interface
jakarta.ws.rs.sse.OutboundSseEvent.Builder
Package | Description |
---|---|
jakarta.ws.rs.sse |
Server-Sent Events related API.
|
-
Uses of OutboundSseEvent.Builder in jakarta.ws.rs.sse
Methods in jakarta.ws.rs.sse that return OutboundSseEvent.Builder Modifier and Type Method Description OutboundSseEvent.Builder
OutboundSseEvent.Builder. comment(String comment)
Set comment string associated with the event.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(Class type, Object data)
Set event data and 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 themedia 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.