Package | Description |
---|---|
jakarta.ws.rs.sse |
Server-Sent Events related API.
|
Modifier and Type | Method and 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 © 2018,2020 Eclipse Foundation.
Use is subject to license terms.