public class SessionBroadcasterCache extends AbstractBroadcasterCache
BroadcasterCache
that use an HttpSession
to cache
messages.config, emptyList, inspectors, invalidateCacheInterval, isShared, listeners, maxCacheTime, messages, messagesIds, readWriteLock, reaper, scheduledFuture
DEFAULT, NULL
Constructor and Description |
---|
SessionBroadcasterCache() |
Modifier and Type | Method and Description |
---|---|
CacheMessage |
addToCache(String broadcasterId,
String uuid,
BroadcastMessage message)
Start tracking messages associated with
AtmosphereResource from the cache. |
List<Object> |
retrieveFromCache(String broadcasterId,
String uuid)
Retrieve messages associated with
AtmosphereResource . |
addBroadcasterCacheListener, cacheCandidate, cleanup, clearCache, configure, excludeFromCache, get, inspect, inspector, put, removeBroadcasterCacheListener, setInvalidateCacheInterval, setMaxCacheTime, start, stop
public CacheMessage addToCache(String broadcasterId, String uuid, BroadcastMessage message)
BroadcasterCache
AtmosphereResource
from the cache.broadcasterId
- The associated Broadcaster#addAtmosphereResource(AtmosphereResource).getID
uuid
- AtmosphereResource.uuid()
message
- BroadcastMessage
.CacheMessage
public List<Object> retrieveFromCache(String broadcasterId, String uuid)
BroadcasterCache
AtmosphereResource
.broadcasterId
- The associated org.atmosphere.cpr.Broadcaster#addAtmosphereResource(org.atmosphere.cpr.AtmosphereResource).getID
uuid
- AtmosphereResource
List
of messages (String).Copyright © 2016. All rights reserved.