Class TraditionalHttpSessionCollection

java.lang.Object
com.tangosol.util.Base
com.tangosol.coherence.servlet.AbstractHttpSessionCollection
com.tangosol.coherence.servlet.TraditionalHttpSessionCollection
All Implemented Interfaces:
CoherenceHttpSessionCollection, HttpSessionCollection
Direct Known Subclasses:
SplitHttpSessionCollection

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).

Version:
Coherence 2.3
Author:
cp 2003.08.20
  • Constructor Details

    • TraditionalHttpSessionCollection

      public TraditionalHttpSessionCollection()
      Default constructor (required).
  • Method Details

    • toString

      public String toString()
      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)
      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