org.infinispan.eviction.impl.PassivationManagerImpl Maven / Gradle / Ivy
package org.infinispan.eviction.impl;
import static org.infinispan.commons.util.Util.toStr;
import static org.infinispan.persistence.PersistenceUtil.internalMetadata;
import static org.infinispan.persistence.manager.PersistenceManager.AccessMode.BOTH;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicLong;
import org.infinispan.commons.CacheException;
import org.infinispan.commons.util.Util;
import org.infinispan.configuration.cache.Configuration;
import org.infinispan.container.DataContainer;
import org.infinispan.container.entries.InternalCacheEntry;
import org.infinispan.context.impl.ImmutableContext;
import org.infinispan.distribution.DistributionManager;
import org.infinispan.eviction.PassivationManager;
import org.infinispan.factories.annotations.Inject;
import org.infinispan.factories.annotations.Start;
import org.infinispan.marshall.core.MarshalledEntry;
import org.infinispan.marshall.core.MarshalledEntryFactory;
import org.infinispan.notifications.cachelistener.CacheNotifier;
import org.infinispan.persistence.manager.PersistenceManager;
import org.infinispan.persistence.spi.PersistenceException;
import org.infinispan.util.TimeService;
import org.infinispan.util.logging.Log;
import org.infinispan.util.logging.LogFactory;
public class PassivationManagerImpl implements PassivationManager {
PersistenceManager persistenceManager;
CacheNotifier notifier;
Configuration cfg;
private volatile boolean skipOnStop = false;
boolean statsEnabled = false;
boolean enabled = false;
private static final Log log = LogFactory.getLog(PassivationManagerImpl.class);
private final AtomicLong passivations = new AtomicLong(0);
private DataContainer
© 2015 - 2025 Weber Informatics LLC | Privacy Policy