org.infinispan.persistence.async.AdvancedAsyncCacheLoader Maven / Gradle / Ivy
package org.infinispan.persistence.async;
import org.infinispan.executors.ExecutorAllCompletionService;
import org.infinispan.filter.KeyFilter;
import org.infinispan.marshall.core.MarshalledEntry;
import org.infinispan.persistence.spi.PersistenceException;
import org.infinispan.persistence.TaskContextImpl;
import org.infinispan.persistence.modifications.Modification;
import org.infinispan.persistence.modifications.Remove;
import org.infinispan.persistence.modifications.Store;
import org.infinispan.persistence.spi.AdvancedCacheLoader;
import org.infinispan.persistence.spi.CacheLoader;
import org.infinispan.util.logging.Log;
import org.infinispan.util.logging.LogFactory;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
import java.util.concurrent.Callable;
import java.util.concurrent.CompletionService;
import java.util.concurrent.Executor;
import java.util.concurrent.atomic.AtomicReference;
/**
* @author Mircea Markus
* @since 6.0
*/
public class AdvancedAsyncCacheLoader extends AsyncCacheLoader implements AdvancedCacheLoader {
private static final Log log = LogFactory.getLog(AdvancedAsyncCacheLoader.class);
public AdvancedAsyncCacheLoader(CacheLoader actual, AtomicReference state) {
super(actual, state);
}
private void loadAllKeys(State s, final Set
© 2015 - 2025 Weber Informatics LLC | Privacy Policy