Skip navigation links
com.tangosol.coherence.servlet
Class TraditionalHttpSessionCollection
java.lang.Object
com.tangosol.util.Base
com.tangosol.coherence.servlet.AbstractHttpSessionCollection
com.tangosol.coherence.servlet.TraditionalHttpSessionCollection
- All Implemented Interfaces:
- HttpSessionCollection, XmlConfigurable
- Direct Known Subclasses:
- SplitHttpSessionCollection
Deprecated. In releases following 3.6 customization will be declarative.
-
public class TraditionalHttpSessionCollection
- extends AbstractHttpSessionCollection
An implementation of HttpSessionCollection that manages session objects as individual units that contain all of their own attributes, as if the session were a single serializable object, however with some optimizations for attribute serialization and deserialization.
The collection uses two configurable named caches to manage its session information in the cluster:
- "session-storage": The cache of clustered session models. This cache should be configured as an unlimited size cache, although it is strongly suggested that it be arranged in a tiered memory/persistent manner by using the overflow map functionality of Coherence, or even using size-limited caching with read-through/write-behind to a database (if sessions should survive a full cluster take-down/restart).
- "session-death-certificates": A cache of previously used session IDs. This cache should be configured to expire its entries after an acceptable period of time (e.g. one hour or one day), and probably should be size-limited as well (e.g. ten thousand entries).
- Version:
- Coherence 2.3
- Author:
- cp 2003.08.20
Fields inherited from class com.tangosol.coherence.servlet.AbstractHttpSessionCollection |
CACHENAME_DEATHCERTS, CACHENAME_LOCAL_ATTRIBUTES, CACHENAME_LOCAL_SESSIONS, CACHENAME_SESSIONS, CTX_INIT_ALLOW_LOCAL_ATTRIBUTES, CTX_INIT_CACHENAME_DEATHCERTS, CTX_INIT_CACHENAME_LOCAL_ATTRIBUTES, CTX_INIT_CACHENAME_LOCAL_SESSIONS, CTX_INIT_CACHENAME_SESSIONS, CTX_INIT_DAEMON_ASSUME_LOCALITY, CTX_INIT_DIST_CONTROLLER_CLASS, CTX_INIT_ENABLE_SUSPECT_ATTRIBUTES, CTX_INIT_SCOPE_CONTROLLER_CLASS, CTX_INIT_SERVICENAME_OWNERSHIP, CTX_INIT_SESSION_APP_LOCK, CTX_INIT_SESSION_EXPIRE_SECS, CTX_INIT_SESSION_EXPIRY_FILTER_FACTORY, CTX_INIT_SESSION_ID_GENERATOR_CLASS, CTX_INIT_SESSION_ID_LENGTH, CTX_INIT_SESSION_LOCK, CTX_INIT_SESSION_MEMBER_LOCK, CTX_INIT_SESSION_STICKY, CTX_INIT_SESSION_STRICT_SPEC, CTX_INIT_SESSION_THREAD_LOCK, SERVICENAME_OWNERSHIP |
Methods inherited from class com.tangosol.coherence.servlet.AbstractHttpSessionCollection |
activate, addHttpSessionAttributeListener, addHttpSessionListener, create, create, create, destroy, destroyLocalAttributesCache, ensureLocalAttributesCache, enter, exit, generateSessionId, get, getActiveCache, getAppControlCache, getAverageModelLifetime, getAverageModelSize, getClusterCache, getCollection, getConfig, getCurrentTime, getDeathCertCache, getDefaultMaxInactiveInterval, getDescription, getDistributionController, getHttpSessionAttributeListeners, getHttpSessionListeners, getLocalAttributesCache, getLocalCache, getMaxModelSize, getMinModelSize, getModel, getModelDeaths, getModelUpdates, getOwnedCache, getOwnedModel, getScopeController, getSessionIdGenerator, getSessionIdLength, getSessionOwnershipInfo, getStickyCache, getStickyExitTaskCache, getStickyService, isActive, isAllowLocalAttributes, isAppLockingEnforced, isAssumeLocality, isEnableAttributeListenerOptimization, isEnableSuspectAttributes, isExistent, isMemberLockingEnforced, isOwned, isOwnershipSticky, isSessionLockingEnforced, isStrict, isStuck, isThreadLockingEnforced, iterateIds, iteratePotentiallyExpiredIds, obtainAppOwnership, obtainClusterOwnership, obtainThreadOwnership, onModelUpdate, passivate, postCreate, putBlind, releaseAppOwnership, releaseCache, releaseClusterOwnership, releaseStuckSession, releaseThreadOwnership, removeBlind, removeHttpSessionAttributeListener, removeHttpSessionListener, resetStatistics, setConfig, shutdown |
TraditionalHttpSessionCollection
public TraditionalHttpSessionCollection()
- Deprecated.
- Default constructor (required).
toString
public String toString()
- Deprecated.
- Returns a string representation of the object.
-
- Overrides:
toString
in class AbstractHttpSessionCollection
-
- Returns:
- a string representation of the object
instantiateModel
protected AbstractHttpSessionModel instantiateModel(javax.servlet.http.HttpSession session,
String sId)
- Deprecated.
- Factory Method: Instantiate a AbstractHttpSessionModel or subclass thereof.
-
- Specified by:
instantiateModel
in class AbstractHttpSessionCollection
-
- Parameters:
session
- the session that delegates to this model
sId
- the session ID
- Returns:
- a new instance of AbstractHttpSessionModel or subclass thereof
getSerializer
public Serializer getSerializer()
- Deprecated.
- Get the serializer used to serialize and deserialize session attributes.
-
- Returns:
- a serializer; never null
setSerializer
public void setSerializer(Serializer serializer)
- Deprecated.
- Set the serializer used to serialize and deserialize session attributes.
-
- Parameters:
serializer
- a serializer; must not be null
Skip navigation links
Copyright © 2000, 2010, Oracle and/or its affiliates. All rights reserved.