@Override protected SatelliteCache<K, V> initialValue() { return new SatelliteCache<>(_parent); } };
@Override protected SatelliteCache<K, V> initialValue() { return new SatelliteCache<>(_parent); } };
@Override protected SatelliteCache<K, V> initialValue() { return new SatelliteCache<>(_parent); } };
@Override protected SatelliteCache<K, V> initialValue() { return new SatelliteCache<>(_parent); } };
@Override protected SatelliteCache<K, V> initialValue() { return new SatelliteCache<>(_parent); } };
@Override protected SatelliteCache<K, V> initialValue() { return new SatelliteCache<>(_parent); } };
/** * Creates an unsynchronized, concurrency-unsafe Level 1 cache that can only be * used safely by a single thread. * * @param <K> * The type of keys used to identify values in the cache. * @param <V> * The type of values stored in the cache. * * @return The newly created cache. */ public static <K, V> Cache<K, V> createSatelliteCache() { return new SatelliteCache<>(); }
/** * Creates an unsynchronized, concurrency-unsafe Level 1 cache that can only be * used safely by a single thread. * * @param <K> * The type of keys used to identify values in the cache. * @param <V> * The type of values stored in the cache. * * @return The newly created cache. */ public static <K, V> Cache<K, V> createSatelliteCache() { return new SatelliteCache<>(); }
/** * Creates an unsynchronized, concurrency-unsafe Level 1 cache that can only be * used safely by a single thread. * * @param <K> * The type of keys used to identify values in the cache. * @param <V> * The type of values stored in the cache. * * @return The newly created cache. */ public static <K, V> Cache<K, V> createSatelliteCache() { return new SatelliteCache<>(); }
/** * Creates an unsynchronized, concurrency-unsafe Level 1 cache that can only be * used safely by a single thread. Keys are compared by reference identity. * * @param <K> * The type of keys used to identify values in the cache. * @param <V> * The type of values stored in the cache. * * @return The newly created cache. */ public static <K, V> Cache<K, V> createSatelliteIdentityCache() { return new SatelliteCache<>(); }
/** * Creates an unsynchronized, concurrency-unsafe Level 1 cache that can only be * used safely by a single thread. Keys are compared by reference identity. * * @param <K> * The type of keys used to identify values in the cache. * @param <V> * The type of values stored in the cache. * * @return The newly created cache. */ public static <K, V> Cache<K, V> createSatelliteIdentityCache() { return new SatelliteCache<>(); }
/** * Creates an unsynchronized, concurrency-unsafe Level 1 cache that can only be * used safely by a single thread. Keys are compared by reference identity. * * @param <K> * The type of keys used to identify values in the cache. * @param <V> * The type of values stored in the cache. * * @return The newly created cache. */ public static <K, V> Cache<K, V> createSatelliteIdentityCache() { return new SatelliteCache<>(); }
/** * Creates an unsynchronized, concurrency-unsafe Level 2 cache that can only be * used safely by a single thread. On a cache miss, the parent cache will be * checked. On an insert, the value will propagate up to the parent cache. * * @param <K> * The type of keys used to identify values in the cache. * @param <V> * The type of values stored in the cache. * * @return The newly created cache. */ public static <K, V> Cache<K, V> createSatelliteCache(final Cache<K, V> parent) { return new SatelliteCache<>(VerifyArgument.notNull(parent, "parent")); }
/** * Creates an unsynchronized, concurrency-unsafe Level 2 cache that can only be * used safely by a single thread. On a cache miss, the parent cache will be * checked. On an insert, the value will propagate up to the parent cache. * Keys are compared by reference identity. * * @param <K> * The type of keys used to identify values in the cache. * @param <V> * The type of values stored in the cache. * * @return The newly created cache. */ public static <K, V> Cache<K, V> createSatelliteIdentityCache(final Cache<K, V> parent) { return new SatelliteCache<>(VerifyArgument.notNull(parent, "parent")); }
/** * Creates an unsynchronized, concurrency-unsafe Level 2 cache that can only be * used safely by a single thread. On a cache miss, the parent cache will be * checked. On an insert, the value will propagate up to the parent cache. * * @param <K> * The type of keys used to identify values in the cache. * @param <V> * The type of values stored in the cache. * * @return The newly created cache. */ public static <K, V> Cache<K, V> createSatelliteCache(final Cache<K, V> parent) { return new SatelliteCache<>(VerifyArgument.notNull(parent, "parent")); }
/** * Creates an unsynchronized, concurrency-unsafe Level 2 cache that can only be * used safely by a single thread. On a cache miss, the parent cache will be * checked. On an insert, the value will propagate up to the parent cache. * * @param <K> * The type of keys used to identify values in the cache. * @param <V> * The type of values stored in the cache. * * @return The newly created cache. */ public static <K, V> Cache<K, V> createSatelliteCache(final Cache<K, V> parent) { return new SatelliteCache<>(VerifyArgument.notNull(parent, "parent")); }
/** * Creates an unsynchronized, concurrency-unsafe Level 2 cache that can only be * used safely by a single thread. On a cache miss, the parent cache will be * checked. On an insert, the value will propagate up to the parent cache. * Keys are compared by reference identity. * * @param <K> * The type of keys used to identify values in the cache. * @param <V> * The type of values stored in the cache. * * @return The newly created cache. */ public static <K, V> Cache<K, V> createSatelliteIdentityCache(final Cache<K, V> parent) { return new SatelliteCache<>(VerifyArgument.notNull(parent, "parent")); }
/** * Creates an unsynchronized, concurrency-unsafe Level 2 cache that can only be * used safely by a single thread. On a cache miss, the parent cache will be * checked. On an insert, the value will propagate up to the parent cache. * Keys are compared by reference identity. * * @param <K> * The type of keys used to identify values in the cache. * @param <V> * The type of values stored in the cache. * * @return The newly created cache. */ public static <K, V> Cache<K, V> createSatelliteIdentityCache(final Cache<K, V> parent) { return new SatelliteCache<>(VerifyArgument.notNull(parent, "parent")); }