| Modifier and Type | Field and Description |
|---|---|
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected ManagedSession | doComputeIfAbsent(String
the session id id, Function<String, ManagedSession> the function to load the data for the session mappingFunction)Implements abstract org. Compute the mappingFunction to create a Session object iff the session with the given id isn't already in the map, otherwise return the existing Session. |
| public ManagedSession | doDelete(String
the id id)Implements abstract org. Remove the session with this identity from the store |
| public ManagedSession | doGet(String
session id id)Implements abstract org. Get the session matching the key from the cache. |
| public Session | doPutIfAbsent(String
the identity of the session id, ManagedSession the session object session)Implements abstract org. Put the session into the map if it wasn't already there |
| public boolean | doReplace(String
the id id, ManagedSession the old value oldValue, ManagedSession the new value newValue)Implements abstract org. Replace the mapping from id to oldValue with newValue |
| public ManagedSession | newSession(SessionData
the session data data)Implements abstract org. Implements org. Create a new Session object from pre-existing session data |
| public void | setEvictionPolicy(int
-1 is never evict; 0 is evict-on-exit; and any other positive
value is the time in seconds that a session can be idle before it can
be evicted. evictionTimeout)Overrides org. Implements org. -1 means we never evict inactive sessions. |
| public void |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| NullSessionCache | back to summary |
|---|---|
| public NullSessionCache(SessionManager manager) | |
| doComputeIfAbsent | back to summary |
|---|---|
| protected ManagedSession doComputeIfAbsent(String id, Function<String, ManagedSession> mappingFunction) Implements abstract org. Doc from org. Compute the mappingFunction to create a Session object iff the session
with the given id isn't already in the map, otherwise return the existing Session.
This method is expected to have precisely the same behaviour as
| |
| doDelete | back to summary |
|---|---|
| public ManagedSession doDelete(String id) Implements abstract org. Doc from org. Remove the session with this identity from the store
| |
| doGet | back to summary |
|---|---|
| public ManagedSession doGet(String id) Implements abstract org. Doc from org. Get the session matching the key from the cache. Does not load the session.
| |
| doPutIfAbsent | back to summary |
|---|---|
| public Session doPutIfAbsent(String id, ManagedSession session) Implements abstract org. Doc from org. Put the session into the map if it wasn't already there
| |
| doReplace | back to summary |
|---|---|
| public boolean doReplace(String id, ManagedSession oldValue, ManagedSession newValue) Implements abstract org. Doc from org. Replace the mapping from id to oldValue with newValue
| |
| newSession | back to summary |
|---|---|
| public ManagedSession newSession(SessionData data) Implements abstract org. Implements org. Doc from org. Create a new Session object from pre-existing session data
| |
| setEvictionPolicy | back to summary |
|---|---|
| public void setEvictionPolicy(int evictionTimeout) Overrides org. Implements org. Doc from org. -1 means we never evict inactive sessions. 0 means we evict a session after the last request for it exits >0 is the number of seconds after which we evict inactive sessions from the cache
| |
| shutdown | back to summary |
|---|---|
| public void shutdown() Implements org.
| |