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(java.util.Set<ResourceType<?>> resourceTypes,
Store.Configuration<K,V> storeConfig,
ServiceConfiguration<?,?>... serviceConfigs)
Creates a new
LowerCachingTier instance using the provided configuration |
void |
initCachingTier(LowerCachingTier<?,?> resource)
Initialises a
LowerCachingTier. |
int |
rankLowerCachingTier(java.util.Set<ResourceType<?>> resourceTypes,
java.util.Collection<ServiceConfiguration<?,?>> serviceConfigs)
Gets the internal ranking for the
LowerCachingTier instances provided by this Provider of the
caching tier's ability to handle the specified resources. |
void |
releaseCachingTier(LowerCachingTier<?,?> resource)
Releases a
LowerCachingTier. |
<K,V> LowerCachingTier<K,V> createCachingTier(java.util.Set<ResourceType<?>> resourceTypes, 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 initialiseint rankLowerCachingTier(java.util.Set<ResourceType<?>> resourceTypes, java.util.Collection<ServiceConfiguration<?,?>> serviceConfigs)
LowerCachingTier instances provided by this Provider of the
caching tier's ability to handle the specified resources.
A higher rank value indicates a more capable CachingTier.
resourceTypes - the set of ResourceTypes for the store to handleserviceConfigs - the collection of ServiceConfiguration instances that may contribute
to the rankingCachingTier created by this Provider
to handle the resource types specified by resourceTypes; a rank of 0 indicates the caching tier
can not handle the type specified in resourceTypes