public interface ClusteredSessionManager<O extends OutgoingDistributableSessionData> extends SessionManager
Modifier and Type | Method and Description |
---|---|
DistributedCacheManager<O> |
getDistributedCacheManager()
Gets the
DistributedCacheManager through which we interact with the distributed cache. |
int |
getMaxUnreplicatedInterval()
Get the maximum interval between requests, in seconds, after which a request will trigger replication of the session's
metadata regardless of whether the request has otherwise made the session dirty.
|
ClusteredSessionNotificationPolicy |
getNotificationPolicy()
Gets the policy for determining whether the servlet spec notifications related to session events are allowed to be
emitted on the local cluster node.
|
org.jboss.metadata.web.jboss.ReplicationTrigger |
getReplicationTrigger()
Gets the policy controlling whether session attribute reads and writes mark the session/attribute as needing replication.
|
createSessionId, getJvmRoute, locate, parse, removeLocal, setNewSessionCookie, storeSession
add, addPropertyChangeListener, backgroundProcess, changeSessionId, createEmptySession, createSession, findSession, findSessions, getActiveSessions, getContainer, getDistributable, getExpiredSessions, getInfo, getMaxActive, getMaxInactiveInterval, getRejectedSessions, getSessionAverageAliveTime, getSessionCounter, getSessionIdLength, getSessionMaxAliveTime, load, remove, removePropertyChangeListener, setContainer, setDistributable, setExpiredSessions, setMaxActive, setMaxInactiveInterval, setRejectedSessions, setSessionAverageAliveTime, setSessionCounter, setSessionIdLength, setSessionMaxAliveTime, unload
int getMaxUnreplicatedInterval()
-1
.
The cost of the metadata replication depends on the configured replication granularity
. With SESSION
, the sesssion's attribute map is replicated along with the metadata,
so it can be fairly costly. With other granularities, the metadata object is replicated separately from the attributes
and only contains a String, and a few longs, ints and booleans.0
means replicate metadata on every request; a value of -1
means never
replicate metadata unless the session is otherwise dirty.ClusteredSessionNotificationPolicy getNotificationPolicy()
org.jboss.metadata.web.jboss.ReplicationTrigger getReplicationTrigger()
null
if this has not yet been configured.DistributedCacheManager<O> getDistributedCacheManager()
DistributedCacheManager
through which we interact with the distributed cache.Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.