@ThreadSafe
public static interface AdvancedCacheLoader.CacheLoaderTask<K,V>
Modifier and Type | Method and Description |
---|---|
void |
processEntry(MarshalledEntry<K,V> marshalledEntry,
AdvancedCacheLoader.TaskContext taskContext) |
void processEntry(MarshalledEntry<K,V> marshalledEntry, AdvancedCacheLoader.TaskContext taskContext) throws InterruptedException
marshalledEntry
- an iterated entry. Note that MarshalledEntry.getValue()
might be null if the fetchValue parameter passed to AdvancedCacheLoader.process(KeyFilter,
org.infinispan.persistence.spi.AdvancedCacheLoader.CacheLoaderTask,
java.util.concurrent.Executor, boolean, boolean)
is false.taskContext
- allows the implementors to decide when to stop the iteration by invoking AdvancedCacheLoader.TaskContext.stop()
InterruptedException
Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.