public final class EvaluationPool extends Object
| Constructor and Description |
|---|
EvaluationPool() |
EvaluationPool(int initialSize) |
| Modifier and Type | Method and Description |
|---|---|
Evaluation |
create(SimpleNode node,
Object source)
Returns an Evaluation that contains the node, source and whether it
is a set operation.
|
Evaluation |
create(SimpleNode node,
Object source,
boolean setOperation)
Returns an Evaluation that contains the node, source and whether it
is a set operation.
|
int |
getCreatedCount()
Deprecated.
object-pooling now relies on the jvm garbage collection
|
int |
getRecoveredCount()
Deprecated.
object-pooling now relies on the jvm garbage collection
|
int |
getRecycledCount()
Deprecated.
object-pooling now relies on the jvm garbage collection
|
int |
getSize()
Deprecated.
object-pooling now relies on the jvm garbage collection
|
void |
recycle(Evaluation value)
Deprecated.
object-pooling now relies on the jvm garbage collection
|
void |
recycleAll(Evaluation value)
Deprecated.
object-pooling now relies on the jvm garbage collection
|
void |
recycleAll(List value)
Deprecated.
object-pooling now relies on the jvm garbage collection
|
public EvaluationPool()
public EvaluationPool(int initialSize)
public Evaluation create(SimpleNode node, Object source)
node - a SimpleNode for an Evaluation to be created.source - a source Object for an Evaluation to be created.public Evaluation create(SimpleNode node, Object source, boolean setOperation)
node - a SimpleNode for an Evaluation to be created.source - a source Object for an Evaluation to be created.setOperation - true to identify the Evaluation to be created as a set operation, false to identify it as a get operation.public void recycle(Evaluation value)
value - an Evaluation to be recycled (not used).public void recycleAll(Evaluation value)
value - an Evaluation to be recycled along with its siblings (not used).public void recycleAll(List value)
value - a List of Evaluation objects to be recycled (not used).public int getSize()
public int getCreatedCount()
public int getRecoveredCount()
public int getRecycledCount()
Copyright © 1997–2021 OpenSymphony. All rights reserved.