ikrs.util.session
Class DefaultSession<K,V,U>
java.lang.Object
java.util.AbstractMap<K,V>
ikrs.util.MapDelegation<K,V>
ikrs.util.EnvironmentDelegation<K,V>
ikrs.util.session.AbstractSession<K,V,U>
ikrs.util.session.DefaultSession<K,V,U>
- All Implemented Interfaces:
- Environment<K,V>, Session<K,V,U>, java.util.Map<K,V>
public class DefaultSession<K,V,U>
- extends AbstractSession<K,V,U>
A simple session interface.
Basically a session is nothing more than a named environment that is bound to a specific
system user (remote or local).
Each session is identified by its unique session ID.
Nested classes/interfaces inherited from class java.util.AbstractMap |
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
Methods inherited from class ikrs.util.session.AbstractSession |
allowsMultipleChildNames, clear, containsKey, containsValue, createChild, entrySet, equals, get, getAllChildren, getChild, getChildCount, getChildren, getCreationTime, getLastAccessTime, getLastModified, getParent, getSessionID, getUserID, hashCode, isEmpty, keySet, put, putAll, remove, removeChild, size, toString, toString, values |
Methods inherited from class java.util.AbstractMap |
clone |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
DefaultSession
public DefaultSession(U userID,
EnvironmentFactory<K,V> environmentFactory)
throws java.lang.NullPointerException
- Creates a new DefaultSession.
- Parameters:
userID
- The session's user ID.environment
- A factory to create the base environment to use.
- Throws:
java.lang.NullPointerException
- If the userID or the environment factory are null.
DefaultSession
public DefaultSession(U userID,
Environment<K,V> environment)
throws java.lang.NullPointerException
- Creates a new DefaultSession.
- Parameters:
userID
- The session's user ID.environment
- The base environment to use.
- Throws:
java.lang.NullPointerException
- If the userID or the environment factory are null.