public class TaskContextImpl
extends java.lang.Object
implements org.infinispan.persistence.spi.AdvancedCacheLoader.TaskContext
Modifier and Type | Field and Description |
---|---|
private boolean |
stopped |
Constructor and Description |
---|
TaskContextImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
isStopped()
Verifies if the the TaskContext is marked as stopped.
|
void |
stop()
Invoked from within the CacheLoaderTask, in order to signal the AdvancedCacheLoader implementation that
iteration should be stopped early (before iteration is finished).
|
public void stop()
org.infinispan.persistence.spi.AdvancedCacheLoader.TaskContext
stop
in interface org.infinispan.persistence.spi.AdvancedCacheLoader.TaskContext
public boolean isStopped()
org.infinispan.persistence.spi.AdvancedCacheLoader.TaskContext
isStopped
in interface org.infinispan.persistence.spi.AdvancedCacheLoader.TaskContext