Package com.exedio.cope.util
Class PoolCounter
- java.lang.Object
-
- com.exedio.cope.util.PoolCounter
-
public final class PoolCounter extends Object
Simulates the behaviour of a set of pools with different pool idle limits, and collects statistics about the efficiency of such pools. Useful for determining pool idle limits.- Author:
- Ralf Wiebicke
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PoolCounter.Pool
-
Constructor Summary
Constructors Constructor Description PoolCounter()
PoolCounter(int... idleLimits)
PoolCounter(PoolCounter source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getGetCounter()
List<PoolCounter.Pool>
getPools()
int
getPutCounter()
void
incrementGet()
void
incrementPut()
-
-
-
Constructor Detail
-
PoolCounter
public PoolCounter()
-
PoolCounter
public PoolCounter(int... idleLimits)
-
PoolCounter
public PoolCounter(PoolCounter source)
-
-
Method Detail
-
incrementGet
public void incrementGet()
-
incrementPut
public void incrementPut()
-
getPools
public List<PoolCounter.Pool> getPools()
-
getGetCounter
public int getGetCounter()
-
getPutCounter
public int getPutCounter()
-
-