public static interface LowerCachingTier.Provider extends Service
Service
interface for providing LowerCachingTier
instances.Modifier and Type | Method and Description |
---|---|
<K,V> LowerCachingTier<K,V> |
createCachingTier(Store.Configuration<K,V> storeConfig,
ServiceConfiguration<?,?>... serviceConfigs)
Creates a new
LowerCachingTier instance using the provided configuration |
void |
initCachingTier(LowerCachingTier<?,?> resource)
Initialises a
LowerCachingTier . |
void |
releaseCachingTier(LowerCachingTier<?,?> resource)
Releases a
LowerCachingTier . |
<K,V> LowerCachingTier<K,V> createCachingTier(Store.Configuration<K,V> storeConfig, ServiceConfiguration<?,?>... serviceConfigs)
LowerCachingTier
instance using the provided configurationK
- the key type for this tierV
- the value type for this tierstoreConfig
- the Store
configurationserviceConfigs
- a collection of service configurationsvoid releaseCachingTier(LowerCachingTier<?,?> resource)
LowerCachingTier
.resource
- the lower caching tier to releasejava.lang.IllegalArgumentException
- if this provider does not know about this lower caching tiervoid initCachingTier(LowerCachingTier<?,?> resource)
LowerCachingTier
.resource
- the lower caching tier to initialise