|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.util.Base
com.tangosol.coherence.servlet.AbstractHttpSessionCollection
com.tangosol.coherence.servlet.TraditionalHttpSessionCollection
com.tangosol.coherence.servlet.SplitHttpSessionCollection
Deprecated. In releases following 3.6 customization will be declarative.
public class SplitHttpSessionCollection
An implementation of HttpSessionCollection that manages session objects as multiple units, splitting out larger session attributes into separately managed entries.
The collection uses three configurable named caches to manage its session information in the cluster:
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.tangosol.coherence.servlet.HttpSessionCollection |
---|
HttpSessionCollection.AttributeScopeController, HttpSessionCollection.SessionDistributionController |
Field Summary | |
---|---|
static java.lang.String |
CACHENAME_OVERFLOW Deprecated. The name of the clustered cache that stores the attributes that are too large to store as part of the session objects. |
static java.lang.String |
CTX_INIT_ATTR_OVERFLOW_THRESHOLD Deprecated. The configuration property for the "split" model that overrides the length that attributes must be below to be stored inside a session ("embedded") or above which they will be stored in the separated "overflow" cache ("external"). |
static int |
CTX_INIT_ATTR_OVERFLOW_THRESHOLD_DEFAULT Deprecated. |
static java.lang.String |
CTX_INIT_CACHENAME_OVERFLOW Deprecated. The configuration property that overrides the name of the clustered cache that stores the "overflowing" (split-out due to size) session attributes. |
Fields inherited from class com.tangosol.coherence.servlet.AbstractHttpSessionCollection |
---|
CACHENAME_DEATHCERTS, CACHENAME_LOCAL_ATTRIBUTES, CACHENAME_LOCAL_SESSIONS, CACHENAME_SESSIONS, CTX_INIT_ENABLE_SESSION_ACCESS_DEBUG_LOGGING, CTX_INIT_SESSION_ACCESS_DEBUG_LOGGING_FILTER, SERVICENAME_OWNERSHIP |
Constructor Summary | |
---|---|
SplitHttpSessionCollection() Deprecated. Default constructor (required). |
Method Summary | |
---|---|
void |
configure(XmlElement xml, SessionHelper sessionHelper) Deprecated. |
int |
getAverageExternalAttributeSize() Deprecated. Calculate the average size (in bytes) of the session attributes stored in the external attribute cache since the last time statistics were reset. |
NamedCache |
getExternalAttributeCache() Deprecated. Obtain the cache used to store the large session attributes. |
int |
getExternalAttributeUpdates() Deprecated. Return the number of updates to session attributes stored in the external attribute cache since the last time statistics were reset. |
int |
getMaxExternalAttributeSize() Deprecated. Return the maximum size (in bytes) of a session attribute stored in the external attribute cache since the last time statistics were reset. |
int |
getMinExternalAttributeSize() Deprecated. Determine the minimum size of an attribute such that it is considered "large" and will be stored in a separate "external" or "overflow" cache. |
protected AbstractHttpSessionModel |
instantiateModel(javax.servlet.http.HttpSession session, java.lang.String sId) Deprecated. Factory Method: Instantiate a AbstractHttpSessionModel or subclass thereof. |
protected void |
onExternalAttributeUpdate(int cb) Deprecated. Notify the session collection that an attribute of the specified size (in bytes) was updated in the external attribute cache. |
void |
resetStatistics() Deprecated. Reset all statistics maintained by this session collection. |
void |
shutdown() Deprecated. Notify the session collection that it is being shut down. |
java.lang.String |
toString() Deprecated. Returns a string representation of the object. |
Methods inherited from class com.tangosol.coherence.servlet.TraditionalHttpSessionCollection |
---|
getSerializer, setSerializer |
Field Detail |
---|
public static final java.lang.String CTX_INIT_CACHENAME_OVERFLOW
public static final java.lang.String CTX_INIT_ATTR_OVERFLOW_THRESHOLD
public static final java.lang.String CACHENAME_OVERFLOW
public static final int CTX_INIT_ATTR_OVERFLOW_THRESHOLD_DEFAULT
Constructor Detail |
---|
public SplitHttpSessionCollection()
Method Detail |
---|
public void shutdown()
shutdown
in interface HttpSessionCollection
shutdown
in class AbstractHttpSessionCollection
public void configure(XmlElement xml, SessionHelper sessionHelper)
configure
in interface CoherenceHttpSessionCollection
configure
in class AbstractHttpSessionCollection
public int getMinExternalAttributeSize()
public NamedCache getExternalAttributeCache()
public java.lang.String toString()
toString
in class TraditionalHttpSessionCollection
protected AbstractHttpSessionModel instantiateModel(javax.servlet.http.HttpSession session, java.lang.String sId)
instantiateModel
in class TraditionalHttpSessionCollection
session
- the session that delegates to this modelsId
- the session IDpublic int getAverageExternalAttributeSize()
public int getMaxExternalAttributeSize()
public int getExternalAttributeUpdates()
public void resetStatistics()
resetStatistics
in class AbstractHttpSessionCollection
protected void onExternalAttributeUpdate(int cb)
cb
- the size (in bytes) of the external attribute
|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |