Package com.tangosol.persistence
Class AbstractPersistenceManager.BatchTasks
java.lang.Object
com.tangosol.persistence.AbstractPersistenceManager.BatchTasks
- All Implemented Interfaces:
Associated,KeyAssociation,Runnable
- Enclosing class:
AbstractPersistenceManager<PS extends AbstractPersistenceManager.AbstractPersistentStore>
protected static class AbstractPersistenceManager.BatchTasks
extends Object
implements Runnable, KeyAssociation
A collection of tasks to execute in a loop.
-
Field Summary
FieldsModifier and TypeFieldDescriptionList of tasks to execute.protected final ObjectAssociation for this BatchTasks. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBatchTasks(List<Runnable> listTasks) Construct a BatchTasks instance with the given list of tasks to execute. -
Method Summary
Modifier and TypeMethodDescriptionDetermine the host key (or base) object to which this object is associated.voidrun()
-
Field Details
-
f_listTasks
List of tasks to execute. -
f_oAssociation
Association for this BatchTasks.
-
-
Constructor Details
-
BatchTasks
Construct a BatchTasks instance with the given list of tasks to execute.- Parameters:
listTasks- the tasks to execute
-
-
Method Details
-
run
public void run() -
getAssociatedKey
Description copied from interface:AssociatedDetermine the host key (or base) object to which this object is associated.Note: It's expected that the returned object is suitable to be used as an immutable identity (e.g. a key in a Map).
Note 2: Circular associations are not permitted.- Specified by:
getAssociatedKeyin interfaceAssociated- Returns:
- the host key that for this object, or null if this object has no association
-