Package | Description |
---|---|
org.glassfish.jersey.media.sse |
Support for Server Sent events in Jersey.
|
Modifier and Type | Method and Description |
---|---|
EventSource.Builder |
EventSource.Builder.named(String name)
Set a custom name for the event source.
|
EventSource.Builder |
EventSource.Builder.reconnectingEvery(long delay,
TimeUnit unit)
Set the initial reconnect delay to be used by the event source.
|
static EventSource.Builder |
EventSource.target(javax.ws.rs.client.WebTarget endpoint)
Create a new
event source builder that provides convenient way how to
configure and fine-tune various aspects of a newly prepared event source instance. |
EventSource.Builder |
EventSource.Builder.usePersistentConnections()
Instruct event source to use
persistent HTTP connections when connecting
(or reconnecting) to the SSE endpoint, provided the mechanism is supported by the underlying client
Connector . |
Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.