Class MigrationTask
- java.lang.Object
-
- org.infinispan.persistence.remote.upgrade.MigrationTask
-
- All Implemented Interfaces:
java.util.concurrent.Callable<java.lang.Integer>,DistributedCallable<java.lang.Object,java.lang.Object,java.lang.Integer>
public class MigrationTask extends java.lang.Object implements DistributedCallable<java.lang.Object,java.lang.Object,java.lang.Integer>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMigrationTask.Externalizer
-
Constructor Summary
Constructors Constructor Description MigrationTask(java.util.Set<java.lang.Integer> segments, int readBatch, int threads)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Integercall()voidsetEnvironment(Cache<java.lang.Object,java.lang.Object> cache, java.util.Set<java.lang.Object> inputKeys)Invoked by execution environment after DistributedCallable has been migrated for execution to a specific Infinispan node.
-
-
-
Method Detail
-
call
public java.lang.Integer call() throws java.lang.Exception- Specified by:
callin interfacejava.util.concurrent.Callable<java.lang.Integer>- Throws:
java.lang.Exception
-
setEnvironment
public void setEnvironment(Cache<java.lang.Object,java.lang.Object> cache, java.util.Set<java.lang.Object> inputKeys)
Description copied from interface:DistributedCallableInvoked by execution environment after DistributedCallable has been migrated for execution to a specific Infinispan node.- Specified by:
setEnvironmentin interfaceDistributedCallable<java.lang.Object,java.lang.Object,java.lang.Integer>- Parameters:
cache- cache whose keys are used as input data for this DistributedCallable taskinputKeys- keys used as input for this DistributedCallable task
-
-