public interface BroadcasterListener
Broadcaster's event lifecycle.| Modifier and Type | Interface and Description |
|---|---|
static class |
BroadcasterListener.BroadcastListenerException
Throw this exception to interrupt the
Broadcaster.destroy() operation. |
| Modifier and Type | Method and Description |
|---|---|
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. |
void onPostCreate(Broadcaster b)
Broadcaster has been created.b - a Broadcastervoid onComplete(Broadcaster b)
AtmosphereResource.b - a Broadcastervoid onPreDestroy(Broadcaster b)
b - a Broadcastervoid onAddAtmosphereResource(Broadcaster b, AtmosphereResource r)
AtmosphereResource is getting associated to a Broadcaster.b - a Broadcasterr - an AtmosphereResourcevoid onRemoveAtmosphereResource(Broadcaster b, AtmosphereResource r)
AtmosphereResource is getting removed to a Broadcaster.b - a Broadcasterr - an AtmosphereResourcevoid onMessage(Broadcaster b, Deliver deliver)
Broadcaster.broadcast(Object) is called.b - a Broadcasterdeliver - the DeliverCopyright © 2016. All rights reserved.