Interface NioReceiverMBean
- All Known Implementing Classes:
NioReceiver
public interface NioReceiverMBean
MBean interface for NIO receiver management.
-
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of actively running tasks.Returns the bind address.intReturns the auto-bind mode.longReturns the total number of completed tasks.booleanReturns whether direct buffers are used.longReturns the maximum idle time.intReturns the maximum number of threads.intReturns the minimum number of threads.booleanReturns whether out-of-band inline is enabled.intReturns the current pool size.intgetPort()Returns the TCP listen port.intReturns the receive buffer size.intReturns the secure port.longReturns the selector timeout.booleanReturns whether SO_KEEPALIVE is enabled.booleanReturns whether SO_LINGER is enabled.intReturns the SO_LINGER timeout.booleanReturns whether SO_REUSEADDR is enabled.longReturns the total number of tasks submitted.booleanReturns whether TCP_NODELAY is enabled.intReturns the socket timeout.intReturns the transmit buffer size.intReturns the UDP port.intReturns the UDP receive buffer size.intReturns the UDP transmit buffer size.booleanReturns whether the buffer pool is used.booleanReturns whether the receiver is currently listening.
-
Method Details
-
getAddress
-
getDirect
boolean getDirect()Returns whether direct buffers are used.- Returns:
trueif direct buffers are used
-
getPort
int getPort()Returns the TCP listen port.- Returns:
- the TCP port
-
getAutoBind
int getAutoBind()Returns the auto-bind mode.- Returns:
- the auto-bind mode
-
getSecurePort
int getSecurePort()Returns the secure port.- Returns:
- the secure port
-
getUdpPort
int getUdpPort()Returns the UDP port.- Returns:
- the UDP port
-
getSelectorTimeout
long getSelectorTimeout()Returns the selector timeout.- Returns:
- the selector timeout in milliseconds
-
getMaxThreads
int getMaxThreads()Returns the maximum number of threads.- Returns:
- the max thread count
-
getMinThreads
int getMinThreads()Returns the minimum number of threads.- Returns:
- the min thread count
-
getMaxIdleTime
long getMaxIdleTime()Returns the maximum idle time.- Returns:
- the max idle time in milliseconds
-
getOoBInline
boolean getOoBInline()Returns whether out-of-band inline is enabled.- Returns:
trueif OOB inline is enabled
-
getRxBufSize
int getRxBufSize()Returns the receive buffer size.- Returns:
- the receive buffer size in bytes
-
getTxBufSize
int getTxBufSize()Returns the transmit buffer size.- Returns:
- the transmit buffer size in bytes
-
getUdpRxBufSize
int getUdpRxBufSize()Returns the UDP receive buffer size.- Returns:
- the UDP receive buffer size in bytes
-
getUdpTxBufSize
int getUdpTxBufSize()Returns the UDP transmit buffer size.- Returns:
- the UDP transmit buffer size in bytes
-
getSoKeepAlive
boolean getSoKeepAlive()Returns whether SO_KEEPALIVE is enabled.- Returns:
trueif keep-alive is enabled
-
getSoLingerOn
boolean getSoLingerOn()Returns whether SO_LINGER is enabled.- Returns:
trueif SO_LINGER is enabled
-
getSoLingerTime
int getSoLingerTime()Returns the SO_LINGER timeout.- Returns:
- the SO_LINGER timeout in seconds
-
getSoReuseAddress
boolean getSoReuseAddress()Returns whether SO_REUSEADDR is enabled.- Returns:
trueif SO_REUSEADDR is enabled
-
getTcpNoDelay
boolean getTcpNoDelay()Returns whether TCP_NODELAY is enabled.- Returns:
trueif TCP_NODELAY is enabled
-
getTimeout
int getTimeout()Returns the socket timeout.- Returns:
- the socket timeout in milliseconds
-
getUseBufferPool
boolean getUseBufferPool()Returns whether the buffer pool is used.- Returns:
trueif the buffer pool is used
-
isListening
boolean isListening()Returns whether the receiver is currently listening.- Returns:
trueif listening
-
getPoolSize
int getPoolSize()Returns the current pool size.- Returns:
- the pool size
-
getActiveCount
int getActiveCount()Returns the number of actively running tasks.- Returns:
- the active task count
-
getTaskCount
long getTaskCount()Returns the total number of tasks submitted.- Returns:
- the total task count
-
getCompletedTaskCount
long getCompletedTaskCount()Returns the total number of completed tasks.- Returns:
- the completed task count
-