public abstract class PoolOfLimitedReusableResources extends PoolOfReusableResources
| Constructor and Description |
|---|
PoolOfLimitedReusableResources(int maxNbResources,
int allocationSize)
Allocate a new pool of resources
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAllocationSize()
Return size of allocated resources (in bytes).
|
newResource, release, reservepublic PoolOfLimitedReusableResources(int maxNbResources,
int allocationSize)
maxNbResources - 0 (i.e. unlimited) is not allowed.allocationSize - size of allocated resources (in bytes). 0 (i.e. unlimited) is not allowed.