Modifier and Type | Class and Description |
---|---|
static class |
SessionConnectionStatistics.Global
The cloneable global values class for the server.
|
static class |
SessionConnectionStatistics.State
States.
|
Modifier and Type | Field and Description |
---|---|
long |
bytesReceived
Size of data received.
|
long |
bytesSent
Size of data sent.
|
long |
lastActivityTime
The time of the last activity (never zero).
|
long |
lastHeartBeatDuration
The last web socket heart-beat duration (the PING-PONG message exchange in milliseconds), zero for none yet.
|
long |
lastPingPongDuration
Elapsed time in milliseconds for last ping-pong transaction turn-around.
|
HashMap<String,String> |
properties
The map of properties for the connection, null if none are present.
|
long |
timeLastReceived
The time of the last received transaction, zero for never.
|
long |
timeLastSent
The time of the last sent transaction, zero for never.
|
long |
timeStart
The start time of the connection (never zero).
|
long |
timeStop
The stop time of the connection, zero for never.
|
long |
transactionsReceived
Count of transactions received.
|
long |
transactionsSent
Count of transactions sent.
|
Modifier and Type | Method and Description |
---|---|
protected SessionConnectionStatistics |
clone()
Clones this instance.
|
long |
getDormantStartTime()
Gets the time when the session began to be dormant.
|
static SessionConnectionStatistics.Global |
getGlobalInstance()
Gets a snapshot of the global instance of the transaction information for the server.
|
Map<String,String> |
getProperties()
Gets a copy of all properties of the last or current connection.
|
SessionConnectionStatistics.State |
getState()
Gets the session state, when not the "last" connection, it indicates the last state of this connection.
|
void |
transferProperties(SessionConnectionStatistics other)
Transfers properties from another instance, used when reconnecting a session.
|
public long timeStart
public long timeStop
public long timeLastSent
public long timeLastReceived
public long lastActivityTime
public long bytesSent
public long bytesReceived
public long transactionsSent
public long transactionsReceived
public long lastPingPongDuration
The value is zero if ping-pong has not been fired yet.
public long lastHeartBeatDuration
public static SessionConnectionStatistics.Global getGlobalInstance()
protected SessionConnectionStatistics clone()
public SessionConnectionStatistics.State getState()
public long getDormantStartTime()
public Map<String,String> getProperties()
public void transferProperties(SessionConnectionStatistics other)
iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.