|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BroadcasterListener<T>
Listener interface that can be implemented to listen to events fired by Broadcaster object.
To listen to events, implementation of this interface needs to register with a particular Broadcaster instance
using Broadcaster.add(BroadcasterListener).
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||