Package | Description |
---|---|
org.glassfish.jersey.media.sse |
Support for Server Sent events in Jersey.
|
Modifier and Type | Method and Description |
---|---|
OutboundEvent.Builder |
OutboundEvent.Builder.comment(String comment)
Set comment string associated with the event.
|
OutboundEvent.Builder |
OutboundEvent.Builder.data(Class type,
Object data)
Set event data and java type of event data.
|
OutboundEvent.Builder |
OutboundEvent.Builder.data(jakarta.ws.rs.core.GenericType type,
Object data)
Set event data and a generic java type of event data.
|
OutboundEvent.Builder |
OutboundEvent.Builder.data(Object data)
Set event data and java type of event data.
|
OutboundEvent.Builder |
OutboundEvent.Builder.id(String id)
Set event id.
|
OutboundEvent.Builder |
OutboundEvent.Builder.mediaType(jakarta.ws.rs.core.MediaType mediaType)
Set the
media type of the event data. |
OutboundEvent.Builder |
OutboundEvent.Builder.name(String name)
Set event name.
|
OutboundEvent.Builder |
OutboundEvent.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 © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.