| Package | Description |
|---|---|
| javax.ws.rs |
High-level interfaces and annotations used to create RESTful service
resources.
|
| javax.ws.rs.sse |
Server-Sent Events related API.
|
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Flow.Processor<T,R>
A component that acts as both a Subscriber and Publisher.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Flow.Publisher.subscribe(Flow.Subscriber<? super T> subscriber)
Adds the given Subscriber if possible.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
SseEventSink
Outbound Server-Sent Events stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SseBroadcaster.subscribe(Flow.Subscriber<? super OutboundSseEvent> subscriber)
Subscribe
OutboundSseEvent subscriber (i.e. |
| Modifier and Type | Method and Description |
|---|---|
void |
SseBroadcaster.onClose(Consumer<Flow.Subscriber<? super OutboundSseEvent>> onClose)
Register a listener, which will be called when the SSE event output has been closed (either by client closing
the connection or by calling
SseEventSink.close() on the server side. |
void |
SseBroadcaster.onError(BiConsumer<Flow.Subscriber<? super OutboundSseEvent>,Throwable> onError)
Register a listener, which will be called when an exception was thrown by a given SSE event output when trying
to write to it or close it.
|
Copyright © 1996-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.