public final class SseBroadcasterImpl extends Object implements javax.ws.rs.sse.SseBroadcaster
Constructor and Description |
---|
SseBroadcasterImpl() |
Modifier and Type | Method and Description |
---|---|
CompletionStage<?> |
broadcast(javax.ws.rs.sse.OutboundSseEvent event) |
void |
close() |
void |
onClose(Consumer<javax.ws.rs.sse.SseEventSink> subscriber) |
void |
onError(BiConsumer<javax.ws.rs.sse.SseEventSink,Throwable> exceptioner) |
void |
register(javax.ws.rs.sse.SseEventSink sink) |
public void register(javax.ws.rs.sse.SseEventSink sink)
register
in interface javax.ws.rs.sse.SseBroadcaster
public CompletionStage<?> broadcast(javax.ws.rs.sse.OutboundSseEvent event)
broadcast
in interface javax.ws.rs.sse.SseBroadcaster
public void onClose(Consumer<javax.ws.rs.sse.SseEventSink> subscriber)
onClose
in interface javax.ws.rs.sse.SseBroadcaster
public void onError(BiConsumer<javax.ws.rs.sse.SseEventSink,Throwable> exceptioner)
onError
in interface javax.ws.rs.sse.SseBroadcaster
public void close()
close
in interface AutoCloseable
close
in interface javax.ws.rs.sse.SseBroadcaster
Apache CXF