public interface BroadcasterListener<T>
Broadcaster
object.
To listen to events, implementation of this interface needs to register with a particular Broadcaster
instance
using Broadcaster.add(BroadcasterListener)
.Modifier and Type | Method and Description |
---|---|
void |
onClose(ChunkedOutput<T> chunkedOutput)
Called when the chunkedOutput has been closed (either by client closing the connection or by calling
ChunkedOutput.close() on the server side. |
void |
onException(ChunkedOutput<T> chunkedOutput,
Exception exception)
Called when exception was thrown by a given chunked response when trying to write to it or close it.
|
void onException(ChunkedOutput<T> chunkedOutput, Exception exception)
chunkedOutput
- instance that threw exceptionexception
- thrown exceptionvoid onClose(ChunkedOutput<T> chunkedOutput)
ChunkedOutput.close()
on the server side.chunkedOutput
- instance that has been closed.Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.