Package com.vaadin.server.communication
Class LongPollingCacheFilter
- java.lang.Object
-
- com.vaadin.server.communication.LongPollingCacheFilter
-
- All Implemented Interfaces:
Serializable,org.atmosphere.cpr.BroadcastFilter,org.atmosphere.cpr.PerRequestBroadcastFilter
public class LongPollingCacheFilter extends Object implements org.atmosphere.cpr.PerRequestBroadcastFilter, Serializable
APerRequestBroadcastFilterimplementation that handlesAtmospherePushConnection.PushMessages to ensure that a message is preserved in theBroadcasterCacheuntil the client has received it. The filter acts only on LONG POLLING transport and expects that the client sends the X-Vaadin-LastSeenServerSyncId header with the identifier of the last message seen, every time the connection is established. Messages already seen are discarded, whereas messages not yet sent to the client are added again to the cache to preserve them until client confirms reception by sending the last seen message identifier.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringSEEN_SERVER_SYNC_ID
-
Constructor Summary
Constructors Constructor Description LongPollingCacheFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.atmosphere.cpr.BroadcastFilter.BroadcastActionfilter(String broadcasterId, Object originalMessage, Object message)org.atmosphere.cpr.BroadcastFilter.BroadcastActionfilter(String broadcasterId, org.atmosphere.cpr.AtmosphereResource r, Object originalMessage, Object message)
-
-
-
Field Detail
-
SEEN_SERVER_SYNC_ID
public static final String SEEN_SERVER_SYNC_ID
- See Also:
- Constant Field Values
-
-