Interface NioReceiverMBean

All Known Implementing Classes:
NioReceiver

public interface NioReceiverMBean
MBean interface for NIO receiver management.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the number of actively running tasks.
    Returns the bind address.
    int
    Returns the auto-bind mode.
    int
    Returns the TCP port the receiver is actually bound to, which may differ from the configured port if auto-bind was used.
    int
    Returns the secure port the receiver is actually bound to, which may differ from the configured secure port if auto-bind was used.
    int
    Returns the UDP port the receiver is actually bound to, which may differ from the configured UDP port if auto-bind was used.
    long
    Returns the total number of completed tasks.
    boolean
    Returns whether direct buffers are used.
    long
    Returns the maximum idle time.
    int
    Returns the maximum number of threads.
    int
    Returns the minimum number of threads.
    boolean
    Returns whether out-of-band inline is enabled.
    int
    Returns the current pool size.
    int
    Returns the TCP listen port.
    int
    Returns the receive buffer size.
    int
    Returns the secure port.
    long
    Returns the selector timeout.
    boolean
    Returns whether SO_KEEPALIVE is enabled.
    boolean
    Returns whether SO_LINGER is enabled.
    int
    Returns the SO_LINGER timeout.
    boolean
    Returns whether SO_REUSEADDR is enabled.
    long
    Returns the total number of tasks submitted.
    boolean
    Returns whether TCP_NODELAY is enabled.
    int
    Returns the socket timeout.
    int
    Returns the transmit buffer size.
    int
    Returns the UDP port.
    int
    Returns the UDP receive buffer size.
    int
    Returns the UDP transmit buffer size.
    boolean
    Returns whether the buffer pool is used.
    boolean
    Returns whether the receiver is currently listening.
  • Method Details

    • getAddress

      String getAddress()
      Returns the bind address.
      Returns:
      the address string
    • getDirect

      boolean getDirect()
      Returns whether direct buffers are used.
      Returns:
      true if direct buffers are used
    • getPort

      int getPort()
      Returns the TCP listen port.
      Returns:
      the TCP port
    • getBoundPort

      int getBoundPort()
      Returns the TCP port the receiver is actually bound to, which may differ from the configured port if auto-bind was used.
      Returns:
      the bound TCP port, -1 if not bound
    • getAutoBind

      int getAutoBind()
      Returns the auto-bind mode.
      Returns:
      the auto-bind mode
    • getSecurePort

      int getSecurePort()
      Returns the secure port.
      Returns:
      the secure port
    • getBoundSecurePort

      int getBoundSecurePort()
      Returns the secure port the receiver is actually bound to, which may differ from the configured secure port if auto-bind was used.
      Returns:
      the bound secure port, -1 if not bound
    • getUdpPort

      int getUdpPort()
      Returns the UDP port.
      Returns:
      the UDP port
    • getBoundUdpPort

      int getBoundUdpPort()
      Returns the UDP port the receiver is actually bound to, which may differ from the configured UDP port if auto-bind was used.
      Returns:
      the bound UDP port, -1 if not bound
    • 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:
      true if 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:
      true if keep-alive is enabled
    • getSoLingerOn

      boolean getSoLingerOn()
      Returns whether SO_LINGER is enabled.
      Returns:
      true if 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:
      true if SO_REUSEADDR is enabled
    • getTcpNoDelay

      boolean getTcpNoDelay()
      Returns whether TCP_NODELAY is enabled.
      Returns:
      true if 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:
      true if the buffer pool is used
    • isListening

      boolean isListening()
      Returns whether the receiver is currently listening.
      Returns:
      true if 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