| Package | Description |
|---|---|
| javax.ws.rs.sse |
Server-Sent Events related API.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SseEventSource.subscribe(Consumer<InboundSseEvent> onEvent)
Subscribe a
InboundSseEvent consumer. |
void |
SseEventSource.subscribe(Consumer<InboundSseEvent> onEvent,
Consumer<Throwable> onError)
Subscribe
InboundSseEvent and Throwable consumers. |
void |
SseEventSource.subscribe(Consumer<InboundSseEvent> onEvent,
Consumer<Throwable> onError,
Runnable onComplete)
Subscribe
InboundSseEvent and Throwable consumers and onComplete callback. |
void |
SseEventSource.subscribe(Consumer<SseSubscription> onSubscribe,
Consumer<InboundSseEvent> onEvent,
Consumer<Throwable> onError,
Runnable onComplete)
|
Copyright © 1996-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.