Class GuavaCacheProvider
- java.lang.Object
-
- org.opendaylight.infrautils.caches.baseimpl.BaseProvider
-
- org.opendaylight.infrautils.caches.baseimpl.AbstractProvider
-
- org.opendaylight.infrautils.caches.guava.internal.GuavaCacheProvider
-
- All Implemented Interfaces:
CacheProvider
@Singleton public class GuavaCacheProvider extends AbstractProvider
Googgle GuavaLoadingCache
implementation of cache factory.- Author:
- Michael Vorburger.ch
-
-
Constructor Summary
Constructors Constructor Description GuavaCacheProvider(CacheManagersRegistry cachesMonitor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <K,V>
Cache<K,V>newUnregisteredCache(CacheConfig<K,V> cacheConfig, CachePolicy initialPolicy)
<K,V,E extends Exception>
CheckedCache<K,V,E>newUnregisteredCheckedCache(CheckedCacheConfig<K,V,E> cacheConfig, CachePolicy initialPolicy)
-
Methods inherited from class org.opendaylight.infrautils.caches.baseimpl.AbstractProvider
newCache, newCheckedCache
-
Methods inherited from class org.opendaylight.infrautils.caches.baseimpl.BaseProvider
newCache, newCheckedCache
-
-
-
-
Constructor Detail
-
GuavaCacheProvider
@Inject public GuavaCacheProvider(CacheManagersRegistry cachesMonitor)
-
-
Method Detail
-
newUnregisteredCache
public <K,V> Cache<K,V> newUnregisteredCache(CacheConfig<K,V> cacheConfig, CachePolicy initialPolicy)
- Specified by:
newUnregisteredCache
in classAbstractProvider
-
newUnregisteredCheckedCache
public <K,V,E extends Exception> CheckedCache<K,V,E> newUnregisteredCheckedCache(CheckedCacheConfig<K,V,E> cacheConfig, CachePolicy initialPolicy)
- Specified by:
newUnregisteredCheckedCache
in classAbstractProvider
-
-