|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-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.AbstractHttpSessionModel
com.tangosol.coherence.servlet.TraditionalHttpSessionModel
com.tangosol.coherence.servlet.SplitHttpSessionModel
Deprecated. In releases following 3.6 customization will be declarative.
public class SplitHttpSessionModel
This is an implementation of HttpSessionModel that manages most of its state in a single serializable unit, but splits out its large attributes -- if any -- into separately managed units. By doing so, the cost of accessing those attributes is only realized when they are accessed or modified, and the core session data can remain very small, and thus very efficiently managed in a distributed environment.
Nested Class Summary | |
---|---|
class |
SplitHttpSessionModel.SplittableHolder Deprecated. An immutable object to hold attribute values and related information. |
Nested classes/interfaces inherited from class com.tangosol.coherence.servlet.TraditionalHttpSessionModel |
---|
TraditionalHttpSessionModel.OptimizedHolder |
Nested classes/interfaces inherited from class com.tangosol.coherence.servlet.AbstractHttpSessionModel |
---|
AbstractHttpSessionModel.AttributeHolder |
Field Summary | |
---|---|
protected static ValueExtractor |
SESSION_ID_EXTRACTOR Deprecated. ValueExtractor that can be used to extract the session ID from an external attribute key. |
Fields inherited from class com.tangosol.coherence.servlet.AbstractHttpSessionModel |
---|
ENTRY_ARRAY, MAGIC_V350, STRING_ARRAY |
Constructor Summary | |
---|---|
SplitHttpSessionModel() Deprecated. Default constructor for deserialization. |
|
SplitHttpSessionModel(SplitHttpSessionCollection collection, javax.servlet.http.HttpSession session, String sId) Deprecated. Session creation constructor. |
Method Summary | |
---|---|
protected void |
flush() Deprecated. Flush the changes to this model to whatever data structure (for example, a cache) that is responsible for managing the model's data. |
protected NamedCache |
getExternalCache() Deprecated. Obtain the cache that holds split-out (external) attribute values. |
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 SplitHttpSessionCollection |
getSplitHttpSessionCollection() Deprecated. Get the SplitHttpSessionCollection that contains this model. |
protected AbstractHttpSessionModel.AttributeHolder |
instantiateAttributeHolder() Deprecated. Factory method: Instantiate an AttributeHolder for deserialization purposes. |
protected AbstractHttpSessionModel.AttributeHolder |
instantiateAttributeHolder(String sName, Object oValue) Deprecated. Factory method: Instantiate an AttributeHolder to manage the passed value. |
protected void |
removeExternalAttributes() Deprecated. Helper method used to forcefully remove all external attributes from the external attribute cache. |
protected void |
setCollection(AbstractHttpSessionCollection collection) Deprecated. After deserialization, the collection needs to be configured. |
String |
toString() Deprecated. Returns a string representation of the object. |
protected void |
unbind() Deprecated. Unbind session attributes. |
Field Detail |
---|
protected static ValueExtractor SESSION_ID_EXTRACTOR
Constructor Detail |
---|
public SplitHttpSessionModel()
public SplitHttpSessionModel(SplitHttpSessionCollection collection, javax.servlet.http.HttpSession session, String sId)
collection
- the collection that manages this modelsession
- the session that delegates to this modelsId
- the session IDMethod Detail |
---|
public String toString()
toString
in class TraditionalHttpSessionModel
protected void unbind()
AbstractHttpSessionCollection.obtainThreadOwnership(java.lang.String)
.unbind
in class AbstractHttpSessionModel
protected void flush()
AbstractHttpSessionCollection.obtainThreadOwnership(java.lang.String)
.flush
in class AbstractHttpSessionModel
protected void setCollection(AbstractHttpSessionCollection collection)
setCollection
in class AbstractHttpSessionModel
collection
- the AbstractHttpSessionCollection that this model belongs toprotected SplitHttpSessionCollection getSplitHttpSessionCollection()
protected void removeExternalAttributes()
public int getMinExternalAttributeSize()
protected NamedCache getExternalCache()
protected AbstractHttpSessionModel.AttributeHolder instantiateAttributeHolder()
instantiateAttributeHolder
in class TraditionalHttpSessionModel
protected AbstractHttpSessionModel.AttributeHolder instantiateAttributeHolder(String sName, Object oValue)
instantiateAttributeHolder
in class TraditionalHttpSessionModel
sName
- the attribute nameoValue
- a non-null Object value
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |