public abstract class AbstractProvider extends BaseProvider
Modifier | Constructor and Description |
---|---|
protected |
AbstractProvider(CacheManagersRegistry cachesMonitor) |
Modifier and Type | Method and Description |
---|---|
<K,V> Cache<K,V> |
newCache(CacheConfig<K,V> cacheConfig,
CachePolicy initialPolicy)
Creates a brand new
Cache (API with unchecked exceptions), based on the passed configuration and policy. |
<K,V,E extends Exception> |
newCheckedCache(CheckedCacheConfig<K,V,E> cacheConfig,
CachePolicy initialPolicy)
Creates a brand new
CheckedCache (API for checked exceptions), based
on the passed configuration and policy. |
protected abstract <K,V> Cache<K,V> |
newUnregisteredCache(CacheConfig<K,V> cacheConfig,
CachePolicy initialPolicy) |
protected abstract <K,V,E extends Exception> |
newUnregisteredCheckedCache(CheckedCacheConfig<K,V,E> cacheConfig,
CachePolicy initialPolicy) |
newCache, newCheckedCache
protected AbstractProvider(CacheManagersRegistry cachesMonitor)
protected abstract <K,V> Cache<K,V> newUnregisteredCache(CacheConfig<K,V> cacheConfig, CachePolicy initialPolicy)
protected abstract <K,V,E extends Exception> CheckedCache<K,V,E> newUnregisteredCheckedCache(CheckedCacheConfig<K,V,E> cacheConfig, CachePolicy initialPolicy)
public final <K,V> Cache<K,V> newCache(CacheConfig<K,V> cacheConfig, CachePolicy initialPolicy)
CacheProvider
Cache
(API with unchecked exceptions), based on the passed configuration and policy.
It is the caller's responsibility to AutoCloseable.close()
a Cache obtained from this when they stop.public final <K,V,E extends Exception> CheckedCache<K,V,E> newCheckedCache(CheckedCacheConfig<K,V,E> cacheConfig, CachePolicy initialPolicy)
CacheProvider
CheckedCache
(API for checked exceptions), based
on the passed configuration and policy.
It is the caller's responsibility to AutoCloseable.close()
a Cache obtained from this when they stop.Copyright © 2019 OpenDaylight. All rights reserved.