final class NetSessionWrapper extends Object implements NetSessionWrapperMBean
Modifier and Type | Field and Description |
---|---|
(package private) PoolNetwork |
network |
(package private) short |
sid |
Constructor and Description |
---|
NetSessionWrapper(PoolNetwork network,
short sid) |
Modifier and Type | Method and Description |
---|---|
long |
getLastReceived()
Returns the time in milliseconds of last message received.
|
int |
getMaxMessageInFlow()
Gets the maximum number of message sent and non acknowledged.
|
int |
getNbAckSent()
Returns the number of acknowledge sent since last reboot.
|
int |
getNbBufferingMessageToSent()
Returns the number of buffering messages to sent since last reboot.
|
int |
getNbMessageReceived()
Returns the number of messages received since last reboot.
|
int |
getNbMessageSent()
Returns the number of messages sent since last reboot.
|
int |
getNbWaitingMessages()
Gets the number of waiting messages to send for this session.
|
short |
getRemoteSID()
Gets the server identification of remote host.
|
boolean |
isRunning()
Tests if the session is connected.
|
void |
setMaxMessageInFlow(int maxMessageInFlow)
Sets the maximum number of message sent and non acknowledged.
|
PoolNetwork network
short sid
NetSessionWrapper(PoolNetwork network, short sid)
public short getRemoteSID()
getRemoteSID
in interface NetSessionWrapperMBean
public int getMaxMessageInFlow()
getMaxMessageInFlow
in interface NetSessionWrapperMBean
public void setMaxMessageInFlow(int maxMessageInFlow)
setMaxMessageInFlow
in interface NetSessionWrapperMBean
maxMessageInFlow
- the maximum number of message sent and non acknowledged.public boolean isRunning()
isRunning
in interface NetSessionWrapperMBean
public int getNbWaitingMessages()
getNbWaitingMessages
in interface NetSessionWrapperMBean
public int getNbMessageSent()
getNbMessageSent
in interface NetSessionWrapperMBean
public int getNbMessageReceived()
getNbMessageReceived
in interface NetSessionWrapperMBean
public int getNbAckSent()
getNbAckSent
in interface NetSessionWrapperMBean
public long getLastReceived()
getLastReceived
in interface NetSessionWrapperMBean
public int getNbBufferingMessageToSent()
getNbBufferingMessageToSent
in interface NetSessionWrapperMBean
Copyright © 2018 ScalAgent D.T.. All Rights Reserved.