Example usage for com.google.common.cache RemovalListener interface-usage

List of usage examples for com.google.common.cache RemovalListener interface-usage

Introduction

In this page you can find the example usage for com.google.common.cache RemovalListener interface-usage.

Usage

From source file com.addthis.tutor.tree.TreeRemovalListener.java

public class TreeRemovalListener implements RemovalListener<String, TreeTutorState> {

    @Override
    public void onRemoval(RemovalNotification<String, TreeTutorState> notification) {
        TreeTutorState state = notification.getValue();
        File dir = state.getDir();

From source file de.tum.in.data.cache.RemoveRealtimeDataListener.java

/**
 * Listener used to dump data locally in Controller (IoT Gateway)
 *
 * @author AMIT KUMAR MONDAL
 *
 */

From source file com.codefollower.lealone.omid.tso.GuavaCache.java

public class GuavaCache implements Cache, RemovalListener<Long, Long> {

    private com.google.common.cache.Cache<Long, Long> cache;
    private long removed;

    public GuavaCache(int size) {

From source file com.addthis.hydra.data.query.engine.EngineRemovalListener.java

class EngineRemovalListener implements RemovalListener<String, QueryEngine> {

    private static final Logger log = LoggerFactory.getLogger(EngineRemovalListener.class);

    /**
     * metric to track the number of evicted directories. Due to some concurrency constraints, it

From source file org.gradle.cache.internal.LoggingEvictionListener.java

class LoggingEvictionListener implements RemovalListener<Object, Object> {
    private static Logger logger = LoggerFactory.getLogger(LoggingEvictionListener.class);
    private static final String EVICTION_MITIGATION_MESSAGE = "\nPerformance may suffer from in-memory cache misses. Increase max heap size of Gradle build process to reduce cache misses.";
    volatile int evictionCounter;
    private final String cacheId;
    private Cache<Object, Object> cache;

From source file com.google.gerrit.server.cache.ForwardingRemovalListener.java

/**
 * This listener dispatches removal events to all other RemovalListeners
 * attached via the DynamicSet API.
 *
 * @param <K>
 * @param <V>

From source file com.heliosapm.easymq.cache.DelegatingRemovalListener.java

/**
 * <p>Title: DelegatingRemovalListener</p>
 * <p>Description: Removal listener which can delegate to other listeners</p> 
 * <p>Company: Helios Development Group LLC</p>
 * @author Whitehead (nwhitehead AT heliosdev DOT org)
 * <p><code>com.heliosapm.easymq.cache.DelegatingRemovalListener</code></p>

From source file com.oneops.opamp.cache.WatchedByCacheAttributeRemovalListener.java

@Component
public class WatchedByCacheAttributeRemovalListener implements RemovalListener<String, String> {

    /* Logger instance */
    private static Logger logger = Logger.getLogger(WatchedByCacheAttributeRemovalListener.class);

From source file com.streamsets.pipeline.lib.jdbc.multithread.cache.JdbcTableReadContextInvalidationListener.java

/**
 * Listens for cache invalidation and appropriately closes the result set and statement.
 */
public class JdbcTableReadContextInvalidationListener
        implements RemovalListener<TableRuntimeContext, TableReadContext> {

From source file org.apache.jackrabbit.oak.plugins.document.cache.ForwardingListener.java

/**
 * Listener which forwards the notifications to a delegate. It is used to bridge
 * multiple instances.
 *
 */
public class ForwardingListener<K, V> implements RemovalListener<K, V> {