Class InfinispanSessionData

java.lang.Object
org.eclipse.jetty.server.session.SessionData
org.eclipse.jetty.session.infinispan.InfinispanSessionData
All Implemented Interfaces:
Serializable

public class InfinispanSessionData extends org.eclipse.jetty.server.session.SessionData
InfinispanSessionData Specialization of SessionData to hold the attributes as a serialized byte array. This is necessary because to deserialize the attributes correctly, we need to know which classloader to use, which is normally provided as the thread context classloader. However, infinispan marshalling uses a thread pool and thus these threads have no knowledge of the correct classloader to use.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected byte[]
     

    Fields inherited from class org.eclipse.jetty.server.session.SessionData

    _accessed, _attributes, _contextPath, _cookieSet, _created, _dirty, _expiry, _id, _lastAccessed, _lastNode, _lastSaved, _maxInactiveMs, _metaDataDirty, _vhost
  • Constructor Summary

    Constructors
    Constructor
    Description
    InfinispanSessionData(String id, String cpath, String vhost, long created, long accessed, long lastAccessed, long maxInactiveMs)
     
    InfinispanSessionData(String id, String cpath, String vhost, long created, long accessed, long lastAccessed, long maxInactiveMs, Map<String,Object> attributes)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    byte[]
     
    void
     
    void
    setSerializedAttributes(byte[] serializedAttributes)
     

    Methods inherited from class org.eclipse.jetty.server.session.SessionData

    calcAndSetExpiry, calcAndSetExpiry, calcExpiry, calcExpiry, clean, clearAllAttributes, copy, deserializeAttributes, getAccessed, getAllAttributes, getAttribute, getContextPath, getCookieSet, getCreated, getExpiry, getId, getKeys, getLastAccessed, getLastNode, getLastSaved, getMaxInactiveMs, getVhost, isDirty, isExpiredAt, isMetaDataDirty, putAllAttributes, serializeAttributes, setAccessed, setAttribute, setContextPath, setCookieSet, setCreated, setDirty, setDirty, setExpiry, setId, setLastAccessed, setLastNode, setLastSaved, setMaxInactiveMs, setMetaDataDirty, setVhost, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • _serializedAttributes

      protected byte[] _serializedAttributes
  • Constructor Details

    • InfinispanSessionData

      public InfinispanSessionData(String id, String cpath, String vhost, long created, long accessed, long lastAccessed, long maxInactiveMs)
    • InfinispanSessionData

      public InfinispanSessionData(String id, String cpath, String vhost, long created, long accessed, long lastAccessed, long maxInactiveMs, Map<String,Object> attributes)
  • Method Details