public static interface HigherCachingTier.Provider extends Service
Service interface for providing HigherCachingTier instances.| Modifier and Type | Method and Description |
|---|---|
<K,V> HigherCachingTier<K,V> |
createHigherCachingTier(java.util.Set<ResourceType<?>> resourceTypes,
Store.Configuration<K,V> storeConfig,
ServiceConfiguration<?,?>... serviceConfigs)
Creates a new
HigherCachingTier instance using the provided configuration |
void |
initHigherCachingTier(HigherCachingTier<?,?> resource)
Initialises a
HigherCachingTier. |
int |
rankHigherCachingTier(java.util.Set<ResourceType<?>> resourceTypes,
java.util.Collection<ServiceConfiguration<?,?>> serviceConfigs)
Gets the internal ranking for the
HigherCachingTier instances provided by this Provider of the
caching tier's ability to handle the specified resources. |
void |
releaseHigherCachingTier(HigherCachingTier<?,?> resource)
Releases a
HigherCachingTier. |
<K,V> HigherCachingTier<K,V> createHigherCachingTier(java.util.Set<ResourceType<?>> resourceTypes, Store.Configuration<K,V> storeConfig, ServiceConfiguration<?,?>... serviceConfigs)
HigherCachingTier 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 releaseHigherCachingTier(HigherCachingTier<?,?> resource)
HigherCachingTier.resource - the higher caching tier to releasejava.lang.IllegalArgumentException - if this provider does not know about this higher caching tiervoid initHigherCachingTier(HigherCachingTier<?,?> resource)
HigherCachingTier.resource - the higher caching tier to initialiseint rankHigherCachingTier(java.util.Set<ResourceType<?>> resourceTypes, java.util.Collection<ServiceConfiguration<?,?>> serviceConfigs)
HigherCachingTier 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