|
||||||||||
| 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.addBroadcasterListener(BroadcasterListener).
| Method Summary | |
|---|---|
void |
onClose(ChunkedResponse<T> chunkedResponse)
Called when the chunkedResponse has been closed (either by client closing the connection or by calling ChunkedResponse.close() on the server side. |
void |
onException(ChunkedResponse<T> chunkedResponse,
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(ChunkedResponse<T> chunkedResponse,
Exception exception)
chunkedResponse - instance that threw exceptionexception - thrown exceptionvoid onClose(ChunkedResponse<T> chunkedResponse)
ChunkedResponse.close() on the server side.
chunkedResponse - instance that has been closed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||