Class InfinispanSessionData
java.lang.Object
org.eclipse.jetty.server.session.SessionData
org.eclipse.jetty.session.infinispan.InfinispanSessionData
- All Implemented Interfaces:
Serializable
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 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
ConstructorDescriptionInfinispanSessionData
(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 TypeMethodDescriptionvoid
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
-
Field Details
-
_serializedAttributes
protected byte[] _serializedAttributes
-
-
Constructor Details
-
InfinispanSessionData
-
InfinispanSessionData
-
-
Method Details
-
getSerializedAttributes
public byte[] getSerializedAttributes() -
setSerializedAttributes
public void setSerializedAttributes(byte[] serializedAttributes) -
deserializeAttributes
- Throws:
ClassNotFoundException
IOException
-
serializeAttributes
- Throws:
IOException
-