Class ManagedBufferPool.ManagedBufferPoolMXBean.PoolInfo

java.lang.Object
org.jgrapes.io.util.ManagedBufferPool.ManagedBufferPoolMXBean.PoolInfo
Enclosing interface:
ManagedBufferPool.ManagedBufferPoolMXBean

Information about a single managed pool.
  • Constructor Summary

    Constructors
    Constructor
    Description
    PoolInfo(int created, int pooled, int preserved, int maximum, int bufferSize)
    Instantiates a new pool info.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    The size of the buffers in items.
    int
    The number of buffers created by this pool.
    int
    The maximum number of buffers created by this pool.
    int
    The number of buffers pooled (ready to be acquired).
    int
    The number of buffers preserved.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PoolInfo

      @ConstructorProperties({"created","pooled","preserved","maximum","bufferSize"}) public PoolInfo(int created, int pooled, int preserved, int maximum, int bufferSize)
      Instantiates a new pool info.
      Parameters:
      created - the created
      pooled - the pooled
      preserved - the preserved
      maximum - the maximum
      bufferSize - the buffer size
  • Method Details

    • getCreated

      public int getCreated()
      The number of buffers created by this pool.
      Returns:
      the value
    • getPooled

      public int getPooled()
      The number of buffers pooled (ready to be acquired).
      Returns:
      the value
    • getPreserved

      public int getPreserved()
      The number of buffers preserved.
      Returns:
      the value
    • getMaximum

      public int getMaximum()
      The maximum number of buffers created by this pool.
      Returns:
      the value
    • getBufferSize

      public int getBufferSize()
      The size of the buffers in items.
      Returns:
      the buffer size