Class PoolStats
java.lang.Object
de.aristaflow.adept2.util.objectpool.generic.PoolStats
Contains general information about the state of the object pool its objects.
- Author:
- Patrick Schmidt
-
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of available objects.intReturns the number of available slots.intReturns the total number of pooled objects.intReturns the total number of slots.
-
Method Details
-
getAvailableSlots
public int getAvailableSlots()Returns the number of available slots.- Returns:
- the number of available slots
-
getTotalSlots
public int getTotalSlots()Returns the total number of slots.- Returns:
- the total number of slots
-
getAvailableObjects
public int getAvailableObjects()Returns the number of available objects.- Returns:
- the number of available objects
-
getTotalObjects
public int getTotalObjects()Returns the total number of pooled objects.- Returns:
- the total number of pooled objects
-