public class SessionMessageImpl extends ClusterMessageBase implements SessionMessage
address
EVT_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(java.lang.String contextName,
int eventtype,
byte[] session,
java.lang.String sessionID,
java.lang.String uniqueID)
Creates a session message.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContextName() |
int |
getEventType()
returns the event type
|
java.lang.String |
getEventTypeString()
clear text event type name (for logging purpose only)
|
byte[] |
getSession() |
java.lang.String |
getSessionID() |
long |
getTimestamp() |
java.lang.String |
getUniqueId() |
void |
setTimestamp(long time)
set message send time but only the first setting works (one shot)
|
java.lang.String |
toString() |
getAddress, setAddress
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAddress, setAddress
public SessionMessageImpl(java.lang.String contextName, int eventtype, byte[] session, java.lang.String sessionID, java.lang.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 SessionMessage
public byte[] getSession()
getSession
in interface SessionMessage
public java.lang.String getSessionID()
getSessionID
in interface SessionMessage
public void setTimestamp(long time)
setTimestamp
in interface ClusterMessage
setTimestamp
in class ClusterMessageBase
public long getTimestamp()
getTimestamp
in interface ClusterMessage
getTimestamp
in class ClusterMessageBase
public java.lang.String getEventTypeString()
getEventTypeString
in interface SessionMessage
public java.lang.String getContextName()
getContextName
in interface SessionMessage
public java.lang.String getUniqueId()
getUniqueId
in interface ClusterMessage
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.