public class SessionMessageImpl extends ClusterMessageBase implements SessionMessage
addressEVT_ALL_SESSION_DATA, EVT_ALL_SESSION_NOCONTEXTMANAGER, EVT_ALL_SESSION_TRANSFERCOMPLETE, EVT_CHANGE_SESSION_ID, EVT_GET_ALL_SESSIONS, EVT_SESSION_ACCESSED, EVT_SESSION_CREATED, EVT_SESSION_DELTA, EVT_SESSION_EXPIRED| Constructor and Description |
|---|
SessionMessageImpl(String contextName,
int eventtype,
byte[] session,
String sessionID,
String uniqueID)
Creates a session message.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getContextName() |
int |
getEventType()
returns the event type
|
String |
getEventTypeString()
clear text event type name (for logging purpose only)
|
byte[] |
getSession() |
String |
getSessionID() |
long |
getTimestamp() |
String |
getUniqueId() |
void |
setTimestamp(long time)
set message send time but only the first setting works (one shot)
|
String |
toString() |
getAddress, setAddressclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAddress, setAddresspublic SessionMessageImpl(String contextName, int eventtype, byte[] session, String sessionID, String uniqueID)
contextName - - the name of the context (applicationeventtype - - one of the 8 event type defined in this classsession - - the serialized byte array of the session itselfsessionID - - the id that identifies this sessionuniqueID - - the id that identifies this messagepublic int getEventType()
getEventType in interface SessionMessagepublic byte[] getSession()
getSession in interface SessionMessagepublic String getSessionID()
getSessionID in interface SessionMessagepublic void setTimestamp(long time)
setTimestamp in interface ClusterMessagesetTimestamp in class ClusterMessageBasepublic long getTimestamp()
getTimestamp in interface ClusterMessagegetTimestamp in class ClusterMessageBasepublic String getEventTypeString()
getEventTypeString in interface SessionMessagepublic String getContextName()
getContextName in interface SessionMessagepublic String getUniqueId()
getUniqueId in interface ClusterMessageCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.