org.atmosphere.cpr
Class BroadcasterListenerAdapter

java.lang.Object
  extended by org.atmosphere.cpr.BroadcasterListenerAdapter
All Implemented Interfaces:
BroadcasterListener
Direct Known Subclasses:
AtmosphereResourceStateRecovery.B

public class BroadcasterListenerAdapter
extends Object
implements BroadcasterListener

An implementation of BroadcasterListener.

Author:
Jeanfrancois Arcand

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

Constructor Detail

BroadcasterListenerAdapter

public BroadcasterListenerAdapter()
Method Detail

onPostCreate

public void onPostCreate(Broadcaster b)
Description copied from interface: BroadcasterListener
Invoked just after the Broadcaster has been created.

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

onComplete

public void onComplete(Broadcaster b)
Description copied from interface: BroadcasterListener
Invoked when the Broadcast operation completes.

Specified by:
onComplete in interface BroadcasterListener
Parameters:
b - a Broadcaster

onPreDestroy

public void onPreDestroy(Broadcaster b)
Description copied from interface: BroadcasterListener
Invoked before a Broadcaster is about to be deleted.

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

onAddAtmosphereResource

public void onAddAtmosphereResource(Broadcaster b,
                                    AtmosphereResource r)
Description copied from interface: BroadcasterListener
Invoked when an AtmosphereResource is getting associated to a Broadcaster.

Specified by:
onAddAtmosphereResource in interface BroadcasterListener
Parameters:
b - a Broadcaster
r - an AtmosphereResource

onRemoveAtmosphereResource

public void onRemoveAtmosphereResource(Broadcaster b,
                                       AtmosphereResource r)
Description copied from interface: BroadcasterListener
Invoked when an AtmosphereResource is getting removed to a Broadcaster.

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


Copyright © 2014. All Rights Reserved.