Class HeapSessionStore<T extends Session>
java.lang.Object
is.galia.resource.HeapSessionStore<T>
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
HeapSessionStore
-
-
Method Details
-
evictExpired
public void evictExpired() -
get
Returns the valid session in the store with the given ID. If such a session does not exist in the store, an empty value is returned. If an invalid session exists, it is removed from the store and an empty value is returned.- Parameters:
id
- Session ID.- Returns:
- Session in the store with the given ID, if it exists and is valid.
-
put
Adds the given instance to the store. If it is expired, it is silently discarded instead of being added.- Parameters:
session
- Session to add to the store.
-