Uses of Interface
org.glassfish.jersey.media.sse.EventListener
Packages that use EventListener
Package
Description
Support for Server Sent events in Jersey.
-
Uses of EventListener in org.glassfish.jersey.media.sse
Classes in org.glassfish.jersey.media.sse that implement EventListenerModifier and TypeClassDescriptionclass
Client for reading and processingincoming Server-Sent Events
.Methods in org.glassfish.jersey.media.sse with parameters of type EventListenerModifier 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
Classes in org.glassfish.jersey.media.sse.internal that implement EventListenerModifier 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.Methods in org.glassfish.jersey.media.sse.internal with parameters of type EventListenerModifier and TypeMethodDescriptionstatic EventProcessor.Builder
EventProcessor.builder
(WebTarget target, AtomicReference<EventProcessor.State> state, ClientExecutor clientExecutor, EventListener eventListener, EventProcessor.ShutdownHandler shutdownHandler) Create new Event processor builder.Method parameters in org.glassfish.jersey.media.sse.internal with type arguments of type EventListenerModifier 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.