org.atmosphere.cpr
Class MetaBroadcaster.ThirtySecondsCache

java.lang.Object
  extended by org.atmosphere.cpr.MetaBroadcaster.ThirtySecondsCache
All Implemented Interfaces:
Runnable, MetaBroadcaster.MetaBroadcasterCache
Enclosing class:
MetaBroadcaster

public static final class MetaBroadcaster.ThirtySecondsCache
extends Object
implements MetaBroadcaster.MetaBroadcasterCache, Runnable

Flush the cache every 30 seconds.


Constructor Summary
MetaBroadcaster.ThirtySecondsCache(MetaBroadcaster metaBroadcaster, AtmosphereConfig config)
           
 
Method Summary
 MetaBroadcaster.MetaBroadcasterCache cache(String path, Object o)
          Cache the Broadcaster ID and message
 MetaBroadcaster.MetaBroadcasterCache flushCache()
          Flush the Cache.
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaBroadcaster.ThirtySecondsCache

public MetaBroadcaster.ThirtySecondsCache(MetaBroadcaster metaBroadcaster,
                                          AtmosphereConfig config)
Method Detail

cache

public MetaBroadcaster.MetaBroadcasterCache cache(String path,
                                                  Object o)
Description copied from interface: MetaBroadcaster.MetaBroadcasterCache
Cache the Broadcaster ID and message

Specified by:
cache in interface MetaBroadcaster.MetaBroadcasterCache
Parameters:
path - the value passed to MetaBroadcaster.broadcastTo(String, Object)
o - the value passed to MetaBroadcaster.broadcastTo(String, Object)
Returns:
this

flushCache

public MetaBroadcaster.MetaBroadcasterCache flushCache()
Description copied from interface: MetaBroadcaster.MetaBroadcasterCache
Flush the Cache.

Specified by:
flushCache in interface MetaBroadcaster.MetaBroadcasterCache
Returns:
this

run

public void run()
Specified by:
run in interface Runnable


Copyright © 2014. All Rights Reserved.