public class SseEventSourceImpl extends Object implements javax.ws.rs.sse.SseEventSource
Modifier and Type | Field and Description |
---|---|
static String |
DISCARD_INCOMPLETE_EVENTS |
Modifier and Type | Method and Description |
---|---|
boolean |
close(long timeout,
TimeUnit tunit) |
boolean |
isOpen() |
void |
open() |
void |
register(Consumer<javax.ws.rs.sse.InboundSseEvent> onEvent) |
void |
register(Consumer<javax.ws.rs.sse.InboundSseEvent> onEvent,
Consumer<Throwable> onError) |
void |
register(Consumer<javax.ws.rs.sse.InboundSseEvent> onEvent,
Consumer<Throwable> onError,
Runnable onComplete) |
public static final String DISCARD_INCOMPLETE_EVENTS
public void register(Consumer<javax.ws.rs.sse.InboundSseEvent> onEvent)
register
in interface javax.ws.rs.sse.SseEventSource
public void register(Consumer<javax.ws.rs.sse.InboundSseEvent> onEvent, Consumer<Throwable> onError)
register
in interface javax.ws.rs.sse.SseEventSource
public void register(Consumer<javax.ws.rs.sse.InboundSseEvent> onEvent, Consumer<Throwable> onError, Runnable onComplete)
register
in interface javax.ws.rs.sse.SseEventSource
public void open()
open
in interface javax.ws.rs.sse.SseEventSource
public boolean isOpen()
isOpen
in interface javax.ws.rs.sse.SseEventSource
public boolean close(long timeout, TimeUnit tunit)
close
in interface javax.ws.rs.sse.SseEventSource
Apache CXF