Class BaseProvider
- java.lang.Object
-
- org.opendaylight.infrautils.caches.baseimpl.BaseProvider
-
- All Implemented Interfaces:
CacheProvider
- Direct Known Subclasses:
AbstractProvider
,StandardCacheProvider
public abstract class BaseProvider extends Object implements CacheProvider
Minimal implementation of CacheProvider. SeeAbstractProvider
for the abstract class which typical implementations should extend.- Author:
- Michael Vorburger.ch
-
-
Constructor Summary
Constructors Constructor Description BaseProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <K,V>
Cache<K,V>newCache(CacheConfig<K,V> cacheConfig)
Creates a brand newCache
(API with unchecked exceptions), based on the passed configuration and a default policy.<K,V,E extends Exception>
CheckedCache<K,V,E>newCheckedCache(CheckedCacheConfig<K,V,E> cacheConfig)
Creates a brand newCheckedCache
(API for checked exceptions), based on the passed configuration and a default 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)
Description copied from interface:CacheProvider
Creates a brand newCache
(API with unchecked exceptions), based on the passed configuration and a default 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)
Description copied from interface:CacheProvider
Creates a brand newCheckedCache
(API for checked exceptions), based on the passed configuration and a default policy. It is the caller's responsibility toAutoCloseable.close()
a Cache obtained from this when they stop.- Specified by:
newCheckedCache
in interfaceCacheProvider
-
-