org.atmosphere.cache
Class HeaderBroadcasterCache

java.lang.Object
  extended by org.atmosphere.cache.AbstractBroadcasterCache
      extended by org.atmosphere.cache.HeaderBroadcasterCache
All Implemented Interfaces:
BroadcasterCache

Deprecated. Use UUIDBroadcasterCache.

public class HeaderBroadcasterCache
extends AbstractBroadcasterCache

BroadcasterCache implementation based on the X-Cache-Date headers sent by the client.

Author:
Jeanfrancois Arcand

Field Summary
 
Fields inherited from class org.atmosphere.cache.AbstractBroadcasterCache
emptyList, inspectors, invalidateCacheInterval, isShared, maxCacheTime, messages, messagesIds, readWriteLock, reaper, scheduledFuture
 
Fields inherited from interface org.atmosphere.cpr.BroadcasterCache
DEFAULT
 
Constructor Summary
HeaderBroadcasterCache()
          Deprecated.  
 
Method Summary
 CacheMessage addToCache(String broadcasterId, AtmosphereResource r, BroadcastMessage e)
          Deprecated. Start tracking messages associated with AtmosphereResource from the cache.
 List<Object> retrieveFromCache(String broadcasterId, AtmosphereResource r)
          Deprecated. Retrieve messages associated with AtmosphereResource.
 
Methods inherited from class org.atmosphere.cache.AbstractBroadcasterCache
cleanup, clearCache, configure, excludeFromCache, get, inspect, inspector, put, setInvalidateCacheInterval, setMaxCacheTime, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeaderBroadcasterCache

public HeaderBroadcasterCache()
Deprecated. 
Method Detail

addToCache

public CacheMessage addToCache(String broadcasterId,
                               AtmosphereResource r,
                               BroadcastMessage e)
Deprecated. 
Description copied from interface: BroadcasterCache
Start tracking messages associated with AtmosphereResource from the cache.

Parameters:
broadcasterId - The associated Broadcaster#addAtmosphereResource(AtmosphereResource).getID
r - AtmosphereResource
e - BroadcastMessage.
Returns:
The CacheMessage

retrieveFromCache

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

Parameters:
broadcasterId - The associated Broadcaster#addAtmosphereResource(AtmosphereResource).getID
r - AtmosphereResource
Returns:
a List of messages (String).


Copyright © 2014. All Rights Reserved.