org.atmosphere.cpr
Class BroadcasterConfig.DefaultBroadcasterCache

java.lang.Object
  extended by org.atmosphere.cpr.BroadcasterConfig.DefaultBroadcasterCache
All Implemented Interfaces:
BroadcasterCache
Enclosing class:
BroadcasterConfig

public static class BroadcasterConfig.DefaultBroadcasterCache
extends Object
implements BroadcasterCache


Field Summary
 
Fields inherited from interface org.atmosphere.cpr.BroadcasterCache
BROADCASTER_CACHE_TRACKER
 
Constructor Summary
BroadcasterConfig.DefaultBroadcasterCache()
           
 
Method Summary
 void addToCache(AtmosphereResource r, Object e)
          Start tracking messages associated with AtmosphereResource from the cache
 List<Object> retrieveFromCache(AtmosphereResource r)
          Retrieve messages associated with AtmosphereResource
 void start()
          Start
 void stop()
          Stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BroadcasterConfig.DefaultBroadcasterCache

public BroadcasterConfig.DefaultBroadcasterCache()
Method Detail

start

public void start()
Description copied from interface: BroadcasterCache
Start

Specified by:
start in interface BroadcasterCache

stop

public void stop()
Description copied from interface: BroadcasterCache
Stop

Specified by:
stop in interface BroadcasterCache

addToCache

public void addToCache(AtmosphereResource r,
                       Object e)
Description copied from interface: BroadcasterCache
Start tracking messages associated with AtmosphereResource from the cache

Specified by:
addToCache in interface BroadcasterCache
Parameters:
r - AtmosphereResource
e - a broadcasted message.

retrieveFromCache

public List<Object> retrieveFromCache(AtmosphereResource r)
Description copied from interface: BroadcasterCache
Retrieve messages associated with AtmosphereResource

Specified by:
retrieveFromCache in interface BroadcasterCache
Parameters:
r - AtmosphereResource
Returns:
a List of messages (String).


Copyright © 2011. All Rights Reserved.