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