public class InfinispanSessionManager.Session extends MemSession
Modifier and Type | Field and Description |
---|---|
protected boolean |
_dirty
If dirty, session needs to be (re)sent to cluster
|
SESSION_CREATED_SECURE
Modifier | Constructor and Description |
---|---|
protected |
Session(javax.servlet.http.HttpServletRequest request)
A new session.
|
protected |
Session(InfinispanSessionManager.SerializableSessionData sd) |
protected |
Session(String sessionId,
long created,
long accessed,
long maxInterval)
A restored session.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
access(long time)
Called on entry to the session.
|
protected void |
complete()
Exit from session
|
String |
getContextPath() |
long |
getExpiry() |
String |
getLastNode() |
long |
getLastSyncTime() |
String |
getVHost() |
protected boolean |
isDirty()
Test if the session is dirty
|
protected boolean |
isStale(long atTime)
Test if the session is stale
|
void |
setAttribute(String name,
Object value) |
void |
setContextPath(String contextPath) |
void |
setExpiry(long expiry) |
void |
setLastNode(String lastNode) |
void |
setLastSyncTime(long lastSyncTime) |
void |
setVHost(String vhost) |
void |
swapId(String newId,
String newNodeId) |
protected void |
timeout()
Expire the session.
|
addAttributes, clearAttributes, doGet, doGetAttributeNames, doPutOrRemove, getAttributeMap, getAttributes, getNames
bindValue, callSessionAttributeListeners, changeAttribute, checkExpiry, checkValid, cookieSet, didActivate, doInvalidate, getAccessed, getAttribute, getAttributeNames, getClusterId, getCookieSetTime, getCreationTime, getId, getLastAccessedTime, getMaxInactiveInterval, getNodeId, getRequests, getServletContext, getSession, getSessionContext, getSessionManager, getValue, getValueNames, invalidate, isIdChanged, isNew, isValid, putValue, removeAttribute, removeValue, renewId, setClusterId, setCookieSetTime, setIdChanged, setLastAccessedTime, setMaxInactiveInterval, setNodeId, setRequests, toString, unbindValue, updateAttribute, willPassivate
protected Session(javax.servlet.http.HttpServletRequest request)
request
- protected Session(InfinispanSessionManager.SerializableSessionData sd)
protected Session(String sessionId, long created, long accessed, long maxInterval)
sessionId
- created
- accessed
- maxInterval
- protected boolean access(long time)
access
in class AbstractSession
AbstractSession.access(long)
protected void complete()
complete
in class AbstractSession
AbstractSession.complete()
protected boolean isStale(long atTime)
atTime
- protected boolean isDirty()
protected void timeout()
timeout
in class AbstractSession
AbstractSession.timeout()
public void setExpiry(long expiry)
public long getExpiry()
public void setAttribute(String name, Object value)
setAttribute
in interface javax.servlet.http.HttpSession
setAttribute
in class AbstractSession
public String getContextPath()
public void setContextPath(String contextPath)
public String getVHost()
public void setVHost(String vhost)
public String getLastNode()
public void setLastNode(String lastNode)
public long getLastSyncTime()
public void setLastSyncTime(long lastSyncTime)
Copyright © 1995-2015 Webtide. All Rights Reserved.