All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.maxifier.mxcache.guava.GuavaOption Maven / Gradle / Ivy

There is a newer version: 2.6.9
Show newest version
/*
 * Copyright (c) 2008-2014 Maxifier Ltd. All Rights Reserved.
 */
package com.maxifier.mxcache.guava;

import com.google.common.cache.CacheBuilder;

/**
 * GuavaOption
 *
 * @author Alexander Kochurov ([email protected]) (2012-10-09 09:34)
 */
public enum GuavaOption {
    SOFT_VALUES {
        @Override
        public void set(CacheBuilder builder) {
            builder.softValues();
        }
    }, WEAK_KEYS {
        @Override
        public void set(CacheBuilder builder) {
            builder.weakKeys();
        }
    }, WEAK_VALUES {
        @Override
        public void set(CacheBuilder builder) {
            builder.weakValues();
        }
    }, RECORD_STATS {
        @Override
        public void set(CacheBuilder builder) {
            builder.recordStats();
        }
    };

    public abstract void set(CacheBuilder builder);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy