class SessionRecord extends Object
SessionsDB.
Contains the destination, properties, and handler for a session.| Constructor and Description |
|---|
SessionRecord(SessionRecord in)Copy constructor. |
SessionRecord(String dest,
Properties props,
SAMv3Handler handler)Create a new session record. |
| Modifier and Type | Method and Description |
|---|---|
String | getDest()Get the base64-encoded destination. |
SAMv3Handler | getHandler()Get the SAM handler for this session. |
(package private) long | getLastAccessed() |
Properties | getProps()Get a copy of the session properties. |
List<Thread> | getThreads()Get a snapshot of the threads running for this session. |
void | startThread(Thread thread)Register a new session thread and start it. |
(package private) void | touch()Update the last-accessed timestamp. |
public SessionRecord(SessionRecord in)
in - the session record to copypublic SessionRecord(String dest, Properties props, SAMv3Handler handler)
dest - base64-encoded destinationprops - session propertieshandler - the SAM handler for this sessionpublic String getDest()
public SAMv3Handler getHandler()
long getLastAccessed()
public Properties getProps()
public List<Thread> getThreads()
public void startThread(Thread thread)
thread - the thread to register and startvoid touch()