public interface BroadcasterListener<T>
Broadcasterobject. To listen to events, implementation of this interface needs to register with a particular
|Modifier and Type||Method and Description|
Called when the chunkedOutput has been closed (either by client closing the connection or by calling
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 exception
exception- thrown exception
void onClose(ChunkedOutput<T> chunkedOutput)
ChunkedOutput.close()on the server side.
chunkedOutput- instance that has been closed.
Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.