|
ProgramixGenericLib v4.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.programix.da2.bridge.DABridgeSession
public class DABridgeSession
Encapsulates information about a user's session including the session id, and can store session-specific key-value pairs.
| Nested Class Summary | |
|---|---|
static interface |
DABridgeSession.Initializer
Used to specify a block of code that should be executed whenever a new session is created. |
static class |
DABridgeSession.Manager
Used to manage the sessions. |
| Field Summary | |
|---|---|
static int |
DEFAULT_TIMEOUT
|
static int |
NEVER_TIMEOUT
|
| Method Summary | |
|---|---|
long |
getIdleTime()
Returns the difference between 'now' and the 'last used time'. |
int |
getIdleTimeoutMinutes()
|
String |
getIdString()
|
long |
getLastUsedTime()
Returns the time that this session last sent a response. |
ValueMap |
getSessionStore()
Returns the ValueMap that can be used to store session-specific
information. |
Value |
getSessionValue(String sessionStoreKey)
|
void |
invalidate()
Removes this session from the list of sessions that the Session.Manager is monitoring. |
void |
setIdleTimeoutMinutes(int minutes)
Used to specify a shorter or longer timeout for this session. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int NEVER_TIMEOUT
public static final int DEFAULT_TIMEOUT
| Method Detail |
|---|
public String getIdString()
public long getLastUsedTime()
public long getIdleTime()
public void setIdleTimeoutMinutes(int minutes)
public int getIdleTimeoutMinutes()
public void invalidate()
public ValueMap getSessionStore()
ValueMap that can be used to store session-specific
information. This activity on this ValueMap is synchronized
independently of the Session it belongs to (use the
getLockObject() method on
ValueMap if you need to perform multiple operations on the
ValueMap that must be done without interference).
public Value getSessionValue(String sessionStoreKey)
|
ProgramixGenericLib v4.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||