Package org.atmosphere.cpr
Interface BroadcasterListener
- All Known Implementing Classes:
AtmosphereResourceStateRecovery.B,BroadcasterLifecyclePolicyHandler,BroadcasterListenerAdapter
public interface BroadcasterListener
A listener for a
Broadcaster's event lifecycle.- Author:
- Jeanfrancois Arcand
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classThrow this exception to interrupt theBroadcaster.destroy()operation. -
Method Summary
Modifier and TypeMethodDescriptionvoidInvoked when anAtmosphereResourceis getting associated to aBroadcaster.voidInvoked when the Broadcast operation completes for allAtmosphereResource.voidonMessage(Broadcaster b, Deliver deliver) Invoked when aBroadcaster.broadcast(Object)is called.voidInvoked just after theBroadcasterhas been created.voidInvoked before a Broadcaster is about to be deleted.voidInvoked when anAtmosphereResourceis getting removed to aBroadcaster.
-
Method Details
-
onPostCreate
Invoked just after theBroadcasterhas been created.- Parameters:
b- a Broadcaster
-
onComplete
Invoked when the Broadcast operation completes for allAtmosphereResource.- Parameters:
b- a Broadcaster
-
onPreDestroy
Invoked before a Broadcaster is about to be deleted.- Parameters:
b- a Broadcaster
-
onAddAtmosphereResource
Invoked when anAtmosphereResourceis getting associated to aBroadcaster.- Parameters:
b- a Broadcasterr- an AtmosphereResource
-
onRemoveAtmosphereResource
Invoked when anAtmosphereResourceis getting removed to aBroadcaster.- Parameters:
b- a Broadcasterr- an AtmosphereResource
-
onMessage
Invoked when aBroadcaster.broadcast(Object)is called.- Parameters:
b- a Broadcasterdeliver- theDeliver
-