Class SseEventSourceImpl
java.lang.Object
org.jboss.resteasy.plugins.providers.sse.client.SseEventSourceImpl
- All Implemented Interfaces:
jakarta.ws.rs.sse.SseEventSource
,AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.ws.rs.sse.SseEventSource
jakarta.ws.rs.sse.SseEventSource.Builder
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSseEventSourceImpl
(jakarta.ws.rs.client.WebTarget target) SseEventSourceImpl
(jakarta.ws.rs.client.WebTarget target, boolean open) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
isOpen()
void
open()
void
void
open
(String lastEventId, String verb, jakarta.ws.rs.client.Entity<?> entity, jakarta.ws.rs.core.MediaType... mediaTypes) void
void
void
register
(Consumer<jakarta.ws.rs.sse.InboundSseEvent> onEvent, Consumer<Throwable> onError, Runnable onComplete) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jakarta.ws.rs.sse.SseEventSource
close
-
Field Details
-
RECONNECT_DEFAULT
public static final long RECONNECT_DEFAULT- See Also:
-
-
Constructor Details
-
SseEventSourceImpl
public SseEventSourceImpl(jakarta.ws.rs.client.WebTarget target) -
SseEventSourceImpl
public SseEventSourceImpl(jakarta.ws.rs.client.WebTarget target, boolean open)
-
-
Method Details
-
open
public void open()- Specified by:
open
in interfacejakarta.ws.rs.sse.SseEventSource
-
open
-
open
-
isOpen
public boolean isOpen()- Specified by:
isOpen
in interfacejakarta.ws.rs.sse.SseEventSource
-
register
- Specified by:
register
in interfacejakarta.ws.rs.sse.SseEventSource
-
register
-
register
-
close
- Specified by:
close
in interfacejakarta.ws.rs.sse.SseEventSource
-