|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SessionManager<K,V,U>
This is a basic session handler interface. The actual handling policy is up to the individual implementation.
Method Summary | |
---|---|
Session<K,V,U> |
bind(U userID)
This method tries to create a new session for the given user (ID). |
boolean |
destroy(java.util.UUID sessionID)
This method destroys the session with the specified SID. |
Session<K,V,U> |
get(java.util.UUID sessionID)
Retrieve the session with the given SID. |
SessionFactory<K,V,U> |
getSessionFactory()
This method can be used to retrieve the manager's internal session factory. |
int |
getSessionTimeout()
This method returns the session timeout (seconds) currently set for this manager. |
void |
setSessionTimeout(int seconds)
This method sets the manager's session timeout to the new value (must be larger than 0). |
Method Detail |
---|
SessionFactory<K,V,U> getSessionFactory()
int getSessionTimeout()
void setSessionTimeout(int seconds) throws java.lang.IllegalArgumentException
The
- number of seconds the manager's session will die after not being accessed.
java.lang.IllegalArgumentException
- If the passed timeout is less or equals zero.Session<K,V,U> get(java.util.UUID sessionID)
sessionID
- The desired session's unique ID.
boolean destroy(java.util.UUID sessionID)
sessionID
- The unique ID of the session you want to destroy.
Session<K,V,U> bind(U userID)
userID
- The user (ID) to create the new session for.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |