Package org.glassfish.jersey.server
Interface BroadcasterListener<T>
-
- All Known Implementing Classes:
Broadcaster
public interface BroadcasterListener<T>Listener interface that can be implemented to listen to events fired byBroadcasterobject. To listen to events, implementation of this interface needs to register with a particularBroadcasterinstance usingBroadcaster.add(BroadcasterListener).- Author:
- Martin Matula
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonClose(ChunkedOutput<T> chunkedOutput)Called when the chunkedOutput has been closed (either by client closing the connection or by callingChunkedOutput.close()on the server side.voidonException(ChunkedOutput<T> chunkedOutput, Exception exception)Called when exception was thrown by a given chunked response when trying to write to it or close it.
-
-
-
Method Detail
-
onException
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.- Parameters:
chunkedOutput- instance that threw exceptionexception- thrown exception
-
onClose
void onClose(ChunkedOutput<T> chunkedOutput)
Called when the chunkedOutput has been closed (either by client closing the connection or by callingChunkedOutput.close()on the server side.- Parameters:
chunkedOutput- instance that has been closed.
-
-