Uses of Interface
org.glassfish.jersey.media.sse.EventListener
Package
Description
Support for Server Sent events in Jersey.
-
Uses of EventListener in org.glassfish.jersey.media.sse
Modifier and TypeClassDescriptionclass
Client for reading and processingincoming Server-Sent Events
.Modifier and TypeMethodDescriptionvoid
EventSource.register
(EventListener listener) Register newevent listener
to receive all streamedSSE events
.void
EventSource.register
(EventListener listener, String eventName, String... eventNames) Add name-boundevent listener
which will be called only for incoming SSEevents
whosename
is equal to the specified name(s). -
Uses of EventListener in org.glassfish.jersey.media.sse.internal
Modifier and TypeClassDescriptionclass
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 TypeMethodDescriptionstatic EventProcessor.Builder
EventProcessor.builder
(WebTarget target, AtomicReference<EventProcessor.State> state, ClientExecutor clientExecutor, EventListener eventListener, EventProcessor.ShutdownHandler shutdownHandler) Create new Event processor builder.Modifier and TypeMethodDescriptionEventProcessor.Builder.boundListeners
(Map<String, List<EventListener>> boundListeners) Unbounded listeners will get notified about incoming events with particular name.EventProcessor.Builder.unboundListeners
(List<EventListener> unboundListeners) Unbounded listeners will get notified about any incoming event.