org.atmosphere.lifecycle
Class BroadcasterLifecyclePolicyHandler

java.lang.Object
  extended by org.atmosphere.cpr.BroadcasterListenerAdapter
      extended by org.atmosphere.lifecycle.BroadcasterLifecyclePolicyHandler
All Implemented Interfaces:
BroadcasterListener

public class BroadcasterLifecyclePolicyHandler
extends BroadcasterListenerAdapter


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.atmosphere.cpr.BroadcasterListener
BroadcasterListener.BroadcastListenerException
 
Constructor Summary
BroadcasterLifecyclePolicyHandler()
           
 
Method Summary
 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.
 
Methods inherited from class org.atmosphere.cpr.BroadcasterListenerAdapter
onAddAtmosphereResource, onComplete, onMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BroadcasterLifecyclePolicyHandler

public BroadcasterLifecyclePolicyHandler()
Method Detail

onPostCreate

public void onPostCreate(Broadcaster b)
Invoked just after the Broadcaster has been created.

Specified by:
onPostCreate in interface BroadcasterListener
Overrides:
onPostCreate in class BroadcasterListenerAdapter
Parameters:
b - a Broadcaster

onPreDestroy

public void onPreDestroy(Broadcaster b)
Invoked before a Broadcaster is about to be deleted.

Specified by:
onPreDestroy in interface BroadcasterListener
Overrides:
onPreDestroy in class BroadcasterListenerAdapter
Parameters:
b - a Broadcaster

onRemoveAtmosphereResource

public void onRemoveAtmosphereResource(Broadcaster b,
                                       AtmosphereResource r)
Invoked when an AtmosphereResource is getting removed to a Broadcaster.

Specified by:
onRemoveAtmosphereResource in interface BroadcasterListener
Overrides:
onRemoveAtmosphereResource in class BroadcasterListenerAdapter
Parameters:
b - a Broadcaster
r - an AtmosphereResource


Copyright © 2015. All Rights Reserved.