public class VaPool
extends java.lang.Object
| Constructor and Description |
|---|
VaPool()
Creates a pool.
|
VaPool(boolean useConcurrent)
Creates a pool.
|
VaPool(boolean useConcurrent,
boolean debug)
Instantiates a new va pool.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(VaNode node)
Adds a node to the pool.
|
VaNode |
poll()
Removes and returns the first item pooled.
|
int |
size()
Returns the size of the pool.
|
void |
updatePool(VaNode node)
Updates the specified node to point to this pool.
|
public VaPool()
public VaPool(boolean useConcurrent)
useConcurrent - if true, the pool is backed by a
VaConcurrentQueue.public VaPool(boolean useConcurrent,
boolean debug)
useConcurrent - the use concurrentdebug - the debugpublic void add(VaNode node)
node - the node to addpublic void updatePool(VaNode node)
node - the nodepublic VaNode poll()
public int size()
Copyright @ 2019 Thomson Reuters. All Rights Reserved.