public static interface SseBroadcaster.Listener
SseBroadcaster object.
To listen to events, implementation of this interface needs to register with a particular SseBroadcaster instance
using SseBroadcaster.register(Listener).
| Modifier and Type | Method and Description |
|---|---|
void |
onClose(SseEventOutput output)
Called when the SSE event output has been closed (either by client closing the connection or by calling
Closeable.close() on the server side. |
void |
onException(SseEventOutput output,
Exception exception)
Called when exception was thrown by a given SSE event output when trying to write to it or close it.
|
void onException(SseEventOutput output, Exception exception)
output - output instance that threw exception.exception - thrown exception.void onClose(SseEventOutput output)
Closeable.close() on the server side.output - output instance that has been closed.Copyright © 1996-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.