|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ikrs.util.session.AbstractSessionManager<K,V,U> ikrs.util.session.SynchronizedSessionManagerDelegation<K,V,U>
public class SynchronizedSessionManagerDelegation<K,V,U>
The DefaultSessionManager is a very simple SessionManager implementation that uses a treemap to find sessions by their ID. The search for user IDs is linear! All methods are synchronized (this manager implementation acts like a monitor).
Constructor Summary | |
---|---|
SynchronizedSessionManagerDelegation(SessionManager<K,V,U> coreManager)
Create a new SynchronizedSessionManagerDelegation. |
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)
Thie methos destroys the session with the specified SID. |
Session<K,V,U> |
get(java.util.UUID sessionID)
Retrieve the session with the given SID. |
Methods inherited from class ikrs.util.session.AbstractSessionManager |
---|
getSessionFactory, getSessionIDMap, getSessionTimeout, getSessionUserMap, setSessionTimeout |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SynchronizedSessionManagerDelegation(SessionManager<K,V,U> coreManager) throws java.lang.NullPointerException
java.lang.NullPointerException
Method Detail |
---|
public Session<K,V,U> get(java.util.UUID sessionID)
get
in interface SessionManager<K,V,U>
get
in class AbstractSessionManager<K,V,U>
sessionID
- The desired session's unique ID.
public boolean destroy(java.util.UUID sessionID)
destroy
in interface SessionManager<K,V,U>
destroy
in class AbstractSessionManager<K,V,U>
sessionID
- The unique ID of the session you want to destroy.
public Session<K,V,U> bind(U userID)
bind
in interface SessionManager<K,V,U>
bind
in class AbstractSessionManager<K,V,U>
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 |