|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BroadcasterListener
A listener for a Broadcaster's event lifecycle.
| Nested Class Summary | |
|---|---|
static class |
BroadcasterListener.BroadcastListenerException
Throw this exception to interrupt the Broadcaster.destroy() operation. |
| Method Summary | |
|---|---|
void |
onAddAtmosphereResource(Broadcaster b,
AtmosphereResource r)
Invoked when an AtmosphereResource is getting associated to a Broadcaster. |
void |
onComplete(Broadcaster b)
Invoked when the Broadcast operation completes for all AtmosphereResource. |
void |
onMessage(Broadcaster b,
Deliver deliver)
Invoked when a Broadcaster.broadcast(Object) is called. |
void |
onPostCreate(Broadcaster b)
Invoked just after the Broadcaster has been created. |
void |
onPreDestroy(Broadcaster b)
Invoked before a Broadcaster is about to be deleted. |
void |
onRemoveAtmosphereResource(Broadcaster b,
AtmosphereResource r)
Invoked when an AtmosphereResource is getting removed to a Broadcaster. |
| Method Detail |
|---|
void onPostCreate(Broadcaster b)
Broadcaster has been created.
b - a Broadcastervoid onComplete(Broadcaster b)
AtmosphereResource.
b - a Broadcastervoid onPreDestroy(Broadcaster b)
b - a Broadcaster
void onAddAtmosphereResource(Broadcaster b,
AtmosphereResource r)
AtmosphereResource is getting associated to a Broadcaster.
b - a Broadcasterr - an AtmosphereResource
void onRemoveAtmosphereResource(Broadcaster b,
AtmosphereResource r)
AtmosphereResource is getting removed to a Broadcaster.
b - a Broadcasterr - an AtmosphereResource
void onMessage(Broadcaster b,
Deliver deliver)
Broadcaster.broadcast(Object) is called.
b - a Broadcasterdeliver - the Deliver
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||