Class OSGiGuavaCacheProvider
- java.lang.Object
-
- org.opendaylight.infrautils.caches.guava.internal.OSGiGuavaCacheProvider
-
- All Implemented Interfaces:
CacheProvider
public final class OSGiGuavaCacheProvider extends Object implements CacheProvider
-
-
Constructor Summary
Constructors Constructor Description OSGiGuavaCacheProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <K,V>
Cache<K,V>newCache(CacheConfig<K,V> cacheConfig, CachePolicy initialPolicy)
Creates a brand newCache
(API with unchecked exceptions), based on the passed configuration and policy.<K,V,E extends Exception>
CheckedCache<K,V,E>newCheckedCache(CheckedCacheConfig<K,V,E> cacheConfig, CachePolicy initialPolicy)
Creates a brand newCheckedCache
(API for checked exceptions), based on the passed configuration and policy.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opendaylight.infrautils.caches.CacheProvider
newCache, newCheckedCache
-
-
-
-
Method Detail
-
newCache
public <K,V> Cache<K,V> newCache(CacheConfig<K,V> cacheConfig, CachePolicy initialPolicy)
Description copied from interface:CacheProvider
Creates a brand newCache
(API with unchecked exceptions), based on the passed configuration and policy. It is the caller's responsibility toAutoCloseable.close()
a Cache obtained from this when they stop.- Specified by:
newCache
in interfaceCacheProvider
-
newCheckedCache
public <K,V,E extends Exception> CheckedCache<K,V,E> newCheckedCache(CheckedCacheConfig<K,V,E> cacheConfig, CachePolicy initialPolicy)
Description copied from interface:CacheProvider
Creates a brand newCheckedCache
(API for checked exceptions), based on the passed configuration and policy. It is the caller's responsibility toAutoCloseable.close()
a Cache obtained from this when they stop.- Specified by:
newCheckedCache
in interfaceCacheProvider
-
-