private static class SimpleBrokerMessageHandler.SessionInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static long |
HEARTBEAT_MULTIPLIER |
private long |
lastReadTime |
private long |
lastWriteTime |
private long |
readInterval |
private java.lang.String |
sessiondId |
private java.security.Principal |
user |
private long |
writeInterval |
Constructor and Description |
---|
SessionInfo(java.lang.String sessiondId,
java.security.Principal user,
long[] clientHeartbeat,
long[] serverHeartbeat) |
Modifier and Type | Method and Description |
---|---|
long |
getLastReadTime() |
long |
getLastWriteTime() |
long |
getReadInterval() |
java.lang.String |
getSessiondId() |
java.security.Principal |
getUser() |
long |
getWriteInterval() |
void |
setLastReadTime(long lastReadTime) |
void |
setLastWriteTime(long lastWriteTime) |
private static final long HEARTBEAT_MULTIPLIER
private final java.lang.String sessiondId
private final java.security.Principal user
private final long readInterval
private final long writeInterval
private volatile long lastReadTime
private volatile long lastWriteTime
public SessionInfo(java.lang.String sessiondId, java.security.Principal user, long[] clientHeartbeat, long[] serverHeartbeat)
public java.lang.String getSessiondId()
public java.security.Principal getUser()
public long getReadInterval()
public long getWriteInterval()
public long getLastReadTime()
public void setLastReadTime(long lastReadTime)
public long getLastWriteTime()
public void setLastWriteTime(long lastWriteTime)