Interface NioReceiverMBean
-
- All Known Implementing Classes:
NioReceiver
public interface NioReceiverMBeanMBean interface for NIO receiver management.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetActiveCount()Returns the number of actively running tasks.java.lang.StringgetAddress()Returns the bind address.intgetAutoBind()Returns the auto-bind mode.longgetCompletedTaskCount()Returns the total number of completed tasks.booleangetDirect()Returns whether direct buffers are used.longgetMaxIdleTime()Returns the maximum idle time.intgetMaxThreads()Returns the maximum number of threads.intgetMinThreads()Returns the minimum number of threads.booleangetOoBInline()Returns whether out-of-band inline is enabled.intgetPoolSize()Returns the current pool size.intgetPort()Returns the TCP listen port.intgetRxBufSize()Returns the receive buffer size.intgetSecurePort()Returns the secure port.longgetSelectorTimeout()Returns the selector timeout.booleangetSoKeepAlive()Returns whether SO_KEEPALIVE is enabled.booleangetSoLingerOn()Returns whether SO_LINGER is enabled.intgetSoLingerTime()Returns the SO_LINGER timeout.booleangetSoReuseAddress()Returns whether SO_REUSEADDR is enabled.longgetTaskCount()Returns the total number of tasks submitted.booleangetTcpNoDelay()Returns whether TCP_NODELAY is enabled.intgetTimeout()Returns the socket timeout.intgetTxBufSize()Returns the transmit buffer size.intgetUdpPort()Returns the UDP port.intgetUdpRxBufSize()Returns the UDP receive buffer size.intgetUdpTxBufSize()Returns the UDP transmit buffer size.booleangetUseBufferPool()Returns whether the buffer pool is used.booleanisListening()Returns whether the receiver is currently listening.
-
-
-
Method Detail
-
getAddress
java.lang.String getAddress()
Returns the bind address.- Returns:
- the address string
-
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
-
-