| Modifier and Type | Method and Description |
|---|---|
| public long | Returns: The number of Poolable objects ever created by this pool.Return the number of objects the pool has allocated since it was created. |
| public double | Returns: The approximate latency for failed allocations in milliseconds, for the given percentile, or Double.NaN if nostormpot. has been configured for the pool.The percentile to get, as a decimal, e.g. a number
between 0.0 and 1.0. percentile)Get the approximate latency value, in milliseconds, for failed allocation latencies within the given percentile/quantile of what has been recorded so far. |
| public double | Returns: The approximate latency for allocations in milliseconds, for the given percentile, or Double.NaN if nostormpot.
has been configured for the pool.The percentile to get, as a decimal, e.g. a number
between 0.0 and 1.0. percentile)Get the approximate Poolable object allocation latency value, in milliseconds, of the given percentile/quantile of the values recorded so far. |
| public double | Returns: The approximate latency for deallocations, regardless of whether the throw exceptions or not, in milliseconds for the given percentile, or Double.NaN if nostormpot. has been configured for
the pool.The percentile to get, as a decimal, e.g. a number
between 0.0 and 1.0. percentile)Get the approximate latency value, in milliseconds, for deallocation latencies within the given percentile/quantile of what has been recorded so far. |
| public long | Returns: The number of allocations that have failed for one reason or another.Return the number of allocations that has failed, either because the allocator threw an exception or because it returned null, since the pool was created. |
| public long | Returns: The number of objects leaked from the users of this pool, since the pool was created, or -1 if the pool does not implement precise leak detection.If the pool is capable of precise object leak detection, this method will return the number of object leaks that have been detected, and prevented, since the pool was created. |
| public double | Returns: The approximate object lifetime in milliseconds, for the given percentile, or Double.NaN if nostormpot. has been
configured for the pool.The percentile to get, as a decimal, e.g. a number
between 0.0 and 1.0. percentile)Get the approximate object lifetime, in milliseconds, for the given percentile/quantile. |
| public double | Returns: The approximate latency for failed reallocations in milliseconds, for the given percentile, or Double.NaN if nostormpot. has been configured for the pool.The percentile to get, as a decimal, e.g. a number
between 0.0 and 1.0. percentile)Get the approximate latency value, in milliseconds, for failed reallocation latencies within the given percentile/quantile of what has been recorded so far. |
| public double | Returns: The approximate latency for reallocations in milliseconds, for the given percentile, or Double.NaN if nostormpot. has been configured for the pool.The percentile to get, as a decimal, e.g. a number
between 0.0 and 1.0. percentile)Get the approximate latency value, in milliseconds, for reallocation latencies within the given percentile/quantile of what has been recorded so far. |
| public int | |
| public boolean | Returns: 'true' ifPool#shutdown() has been called on this pool.Returns 'true' if the shut down process has been started on this pool, 'false' otherwise. |
| public void |
| getAllocationCount | back to summary |
|---|---|
| public long getAllocationCount() Return the number of objects the pool has allocated since it was created.
| |
| getAllocationFailureLatencyPercentile | back to summary |
|---|---|
| public double getAllocationFailureLatencyPercentile(double percentile) Get the approximate latency value, in milliseconds, for failed allocation latencies within the given percentile/quantile of what has been recorded so far.
| |
| getAllocationLatencyPercentile | back to summary |
|---|---|
| public double getAllocationLatencyPercentile(double percentile) Get the approximate Poolable object allocation latency value, in milliseconds, of the given percentile/quantile of the values recorded so far.
| |
| getDeallocationLatencyPercentile | back to summary |
|---|---|
| public double getDeallocationLatencyPercentile(double percentile) Get the approximate latency value, in milliseconds, for deallocation latencies within the given percentile/quantile of what has been recorded so far.
| |
| getFailedAllocationCount | back to summary |
|---|---|
| public long getFailedAllocationCount() Return the number of allocations that has failed, either because the allocator threw an exception or because it returned null, since the pool was created.
| |
| getLeakedObjectsCount | back to summary |
|---|---|
| public long getLeakedObjectsCount() If the pool is capable of precise object leak detection, this method will return the number of object leaks that have been detected, and prevented, since the pool was created. If the pool does not support precise object leak detection, then this method returns -1. There are two kinds of leaks: One where the application forgets to release an object back to the pool, but keeps a strong reference to the object, and another where the application not only forgets to release the object, but also looses the reference to the object, making it eligible for garbage collection. The precise leak detector will only count leaks of the latter kind, where the leaked object has been garbage collected.
| |
| getObjectLifetimePercentile | back to summary |
|---|---|
| public double getObjectLifetimePercentile(double percentile) Get the approximate object lifetime, in milliseconds, for the given percentile/quantile.
| |
| getReallocationFailureLatencyPercentile | back to summary |
|---|---|
| public double getReallocationFailureLatencyPercentile(double percentile) Get the approximate latency value, in milliseconds, for failed reallocation latencies within the given percentile/quantile of what has been recorded so far.
| |
| getReallocationLatencyPercentile | back to summary |
|---|---|
| public double getReallocationLatencyPercentile(double percentile) Get the approximate latency value, in milliseconds, for reallocation latencies within the given percentile/quantile of what has been recorded so far.
| |
| getTargetSize | back to summary |
|---|---|
| public int getTargetSize() Get the current target size of the pool.
| |
| isShutDown | back to summary |
|---|---|
| public boolean isShutDown() Returns 'true' if the shut down process has been started on this pool, 'false' otherwise. This method does not reveal whether or not the shut down process has completed.
| |
| setTargetSize | back to summary |
|---|---|
| public void setTargetSize(int size) Set a new target size of the pool.
| |