public class EvioNodePool extends java.lang.Object implements EvioNodeSource
Constructor and Description |
---|
EvioNodePool(int initialSize)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getId()
Get the id number of this pool.
|
EvioNode |
getNode()
Get a single EvioNode object.
|
int |
getSize()
Get the number of nodes in the pool.
|
int |
getUsed()
Get the number of nodes taken from pool.
|
void |
reset()
Reset the source to initial condition.
|
public EvioNodePool(int initialSize)
initialSize
- number of EvioNode objects in pool initially.public int getId()
public int getUsed()
getUsed
in interface EvioNodeSource
public int getSize()
getSize
in interface EvioNodeSource
public EvioNode getNode()
getNode
in interface EvioNodeSource
public void reset()
reset
in interface EvioNodeSource