public static class ObjectArrayPool.SizePool extends Object
Constructor and Description |
---|
SizePool(int arraySize) |
SizePool(int arraySize,
int initialSize) |
Modifier and Type | Method and Description |
---|---|
Object[] |
create() |
int |
getArraySize() |
int |
getCreatedCount()
Returns the number of items this pool has created since
it's construction.
|
int |
getRecoveredCount()
Returns the number of items this pool has recovered from
the pool since its construction.
|
int |
getRecycledCount()
Returns the number of items this pool has recycled since
it's construction.
|
int |
getSize()
Returns the number of items in the pool
|
void |
recycle(Object[] value) |
public SizePool(int arraySize)
public SizePool(int arraySize, int initialSize)
public int getArraySize()
public Object[] create()
public void recycle(Object[] value)
public int getSize()
public int getCreatedCount()
public int getRecoveredCount()
public int getRecycledCount()
Copyright © 1997–2021 The Apache Software Foundation. All rights reserved.