|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BroadcasterCache
A BroadcasterCache is used to persist broadcasted Object Broadcaster.broadcast(Object). Disconnected clients
can always retrieve message that were broadcasted during their "downtime". BroadcasterCache are useful when
a the long polling technique is used and prevent application from loosing event between re-connection.
BroadcasterConfig.setBroadcasterCache(BroadcasterCache)
| Nested Class Summary | |
|---|---|
static class |
BroadcasterCache.STRATEGY
|
| Field Summary | |
|---|---|
static String |
BROADCASTER_CACHE_TRACKER
|
| 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 |
| Field Detail |
|---|
static final String BROADCASTER_CACHE_TRACKER
| Method Detail |
|---|
void start()
void stop()
void addToCache(AtmosphereResource r,
Object e)
AtmosphereResource from the cache
r - AtmosphereResourcee - a broadcasted message.List<Object> retrieveFromCache(AtmosphereResource r)
AtmosphereResource
r - AtmosphereResource
List of messages (String).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||