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() |
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)
|
void |
setUniqueId(String uniqueId) |
String |
toString() |
getAddress, setAddress
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAddress, setAddress
public SessionMessageImpl()
public 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 SessionMessage
public byte[] getSession()
getSession
in interface SessionMessage
public 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 String getEventTypeString()
getEventTypeString
in interface SessionMessage
public String getContextName()
getContextName
in interface SessionMessage
public String getUniqueId()
getUniqueId
in interface ClusterMessage
getUniqueId
in class ClusterMessageBase
public void setUniqueId(String uniqueId)
setUniqueId
in interface ClusterMessage
setUniqueId
in class ClusterMessageBase
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.