Package | Description |
---|---|
org.glassfish.jersey.media.sse |
Support for Server Sent events in Jersey.
|
org.glassfish.jersey.media.sse.internal |
Modifier and Type | Class and Description |
---|---|
class |
EventSource
Client for reading and processing
incoming Server-Sent Events . |
Modifier and Type | Method and Description |
---|---|
void |
EventSource.register(EventListener listener)
Register new
event listener to receive all streamed SSE events . |
void |
EventSource.register(EventListener listener,
String eventName,
String... eventNames)
Add name-bound
event listener which will be called only for incoming SSE
events whose name is equal to the specified
name(s). |
Modifier and Type | Class and Description |
---|---|
class |
EventProcessor
Private event processor task responsible for connecting to the SSE stream and processing
incoming SSE events as well as handling any connection issues.
|
Modifier and Type | Method and Description |
---|---|
static EventProcessor.Builder |
EventProcessor.builder(WebTarget target,
AtomicReference<EventProcessor.State> state,
ClientExecutor clientExecutor,
EventListener eventListener,
EventProcessor.ShutdownHandler shutdownHandler)
Create new Event processor builder.
|
Modifier and Type | Method and Description |
---|---|
EventProcessor.Builder |
EventProcessor.Builder.boundListeners(Map<String,List<EventListener>> boundListeners)
Unbounded listeners will get notified about incoming events with particular name.
|
EventProcessor.Builder |
EventProcessor.Builder.unboundListeners(List<EventListener> unboundListeners)
Unbounded listeners will get notified about any incoming event.
|
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.