ch.bind.philib.pool.object
Class SimplePoolStats

java.lang.Object
  extended by ch.bind.philib.pool.object.SimplePoolStats
All Implemented Interfaces:
PoolStats

public final class SimplePoolStats
extends Object
implements PoolStats

TODO

Author:
Philipp Meinen

Constructor Summary
SimplePoolStats()
           
 
Method Summary
 long getCreates()
           
 long getRecycled()
           
 long getReleased()
           
 long getTakes()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimplePoolStats

public SimplePoolStats()
Method Detail

getCreates

public long getCreates()
Specified by:
getCreates in interface PoolStats
Returns:
The number of object which were created because no pooled objects were left.

getTakes

public long getTakes()
Specified by:
getTakes in interface PoolStats
Returns:
The number of objects which have been taken by client-code.

getRecycled

public long getRecycled()
Specified by:
getRecycled in interface PoolStats
Returns:
The number of objects which have been recycled by client-code.

getReleased

public long getReleased()
Specified by:
getReleased in interface PoolStats
Returns:
The number of objects which have been released because they were no longer needed.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.