| Modifier and Type | Field and Description |
|---|---|
| protected SessionDataMap | _cache
The fronting cache |
| protected SessionDataStore | _store
The actual store for the session data |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public | CachingSessionDataStore(SessionDataMap
the front cache to use cache, SessionDataStore the actual store for the the session data store)
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | delete(String
identity of session to delete id)Implements org. Delete session data |
| protected void | doStart()
Overrides org. Starts the managed lifecycle beans in the order they were added. |
| protected void | doStop()
Overrides org. Stops the managed lifecycle beans in the reverse order they were added. |
| public boolean | exists(String
Identity of session whose existence should be checked id)Implements org. Test if data exists for a given session id. |
| public Set | getExpired(Set<String>
if provided, these are keys of sessions that
the SessionDataStore thinks has expired and should be verified by the
SessionDataStore candidates)Implements org. Called periodically, this method should search the data store for sessions that have been expired for a 'reasonable' amount of time. |
| public SessionDataMap | Returns: the fronting cache for session dataGet the fronting cache for session data. |
| public SessionDataStore | |
| public void | initialize(SessionContext
context associated context)Implements org. Initialize this data map for the given context. |
| public boolean | isPassivating()
Implements org. True if this type of datastore will passivate session objects |
| public SessionData | load(String
identity of session to load id)Implements org. Read in session data. |
| public SessionData | newSessionData(String
the id id, long the timestamp when created created, long the timestamp when accessed accessed, long the timestamp when last accessed lastAccessed, long the max inactive time in milliseconds maxInactiveMs)Implements org. Create a new SessionData |
| public void | store(String
identity of session to store id, SessionData info of session to store data)Implements org. Store the session data. |
| _cache | back to summary |
|---|---|
| protected SessionDataMap _cache The fronting cache | |
| _store | back to summary |
|---|---|
| protected SessionDataStore _store The actual store for the session data | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG Hides org. | |
| CachingSessionDataStore | back to summary |
|---|---|
public CachingSessionDataStore(SessionDataMap cache, SessionDataStore store)
| |
| delete | back to summary |
|---|---|
| public boolean delete(String id) throws Exception Implements org. Doc from org. Delete session data | |
| doStart | back to summary |
|---|---|
| protected void doStart() throws Exception Overrides org. Doc from org. Starts the managed lifecycle beans in the order they were added.
| |
| doStop | back to summary |
|---|---|
| protected void doStop() throws Exception Overrides org. Doc from org. Stops the managed lifecycle beans in the reverse order they were added.
| |
| exists | back to summary |
|---|---|
| public boolean exists(String id) throws Exception Implements org. Doc from org. Test if data exists for a given session id. | |
| getExpired | back to summary |
|---|---|
| public Set Implements org. Doc from org. Called periodically, this method should search the data store for sessions that have been expired for a 'reasonable' amount of time. | |
| getSessionDataMap | back to summary |
|---|---|
| public SessionDataMap getSessionDataMap() Get the fronting cache for session data.
| |
| getSessionStore | back to summary |
|---|---|
| public SessionDataStore getSessionStore() Get the delegate session store.
| |
| initialize | back to summary |
|---|---|
| public void initialize(SessionContext context) throws Exception Implements org. Doc from org. Initialize this data map for the given context. A SessionDataMap can only be used by one context(/session manager).
| |
| isPassivating | back to summary |
|---|---|
| public boolean isPassivating() Implements org. Doc from org. True if this type of datastore will passivate session objects
| |
| load | back to summary |
|---|---|
| public SessionData load(String id) throws Exception Implements org. Doc from org. Read in session data.
| |
| newSessionData | back to summary |
|---|---|
| public SessionData newSessionData(String id, long created, long accessed, long lastAccessed, long maxInactiveMs) Implements org. Doc from org. Create a new SessionData
| |
| store | back to summary |
|---|---|
| public void store(String id, SessionData data) throws Exception Implements org. Doc from org. Store the session data.
| |