org.atmosphere.cache
Class SessionBroadcasterCache
java.lang.Object
org.atmosphere.cache.AbstractBroadcasterCache
org.atmosphere.cache.SessionBroadcasterCache
- All Implemented Interfaces:
- BroadcasterCache
public class SessionBroadcasterCache
- extends AbstractBroadcasterCache
Simple HttpSession based BroadcasterCache
- Author:
- Jeanfrancois Arcand
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SessionBroadcasterCache
public SessionBroadcasterCache()
cache
public void cache(String id,
AtmosphereResource r,
AbstractBroadcasterCache.CachedMessage cm)
- Cache the last message broadcasted.
- Specified by:
cache in class AbstractBroadcasterCache
r - AtmosphereResource.cm - AbstractBroadcasterCache.CachedMessage
retrieveLastMessage
public AbstractBroadcasterCache.CachedMessage retrieveLastMessage(String id,
AtmosphereResource r)
- Return the last message broadcasted to the
AtmosphereResource.
- Specified by:
retrieveLastMessage in class AbstractBroadcasterCache
r - AtmosphereResource.
- Returns:
- a
AbstractBroadcasterCache.CachedMessage, or null if not matched.
Copyright © 2012. All Rights Reserved.