Package org.jgrapes.io.util
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
ConstructorDescriptionPoolInfo
(int created, int pooled, int preserved, int maximum, int bufferSize) Instantiates a new pool info. -
Method Summary
Modifier and TypeMethodDescriptionint
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.
-
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 createdpooled
- the pooledpreserved
- the preservedmaximum
- the maximumbufferSize
- the buffer size
-
-
Method Details
-
getCreated
The number of buffers created by this pool.- Returns:
- the value
-
getPooled
The number of buffers pooled (ready to be acquired).- Returns:
- the value
-
getPreserved
The number of buffers preserved.- Returns:
- the value
-
getMaximum
The maximum number of buffers created by this pool.- Returns:
- the value
-
getBufferSize
The size of the buffers in items.- Returns:
- the buffer size
-