Package org.apache.bookkeeper.feature
Class CacheableFeatureProvider<T extends Feature>
java.lang.Object
org.apache.bookkeeper.feature.CacheableFeatureProvider<T>
- All Implemented Interfaces:
FeatureProvider
- Direct Known Subclasses:
SettableFeatureProvider
public abstract class CacheableFeatureProvider<T extends Feature>
extends Object
implements FeatureProvider
Cacheable Feature Provider.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ConcurrentMap<String,T> protected final Stringprotected final ConcurrentMap<String,FeatureProvider> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFeature(String name) Return the feature with given name.protected abstract TmakeFeature(String featureName) protected Stringprotected abstract FeatureProvidermakeProvider(String fullScopeName) Provide the feature provider under scope name.
-
Field Details
-
scope
-
scopes
-
features
-
-
Constructor Details
-
CacheableFeatureProvider
-
-
Method Details
-
makeName
-
getFeature
Description copied from interface:FeatureProviderReturn the feature with given name.- Specified by:
getFeaturein interfaceFeatureProvider- Parameters:
name- feature name- Returns:
- feature instance
-
makeFeature
-
scope
Description copied from interface:FeatureProviderProvide the feature provider under scope name.- Specified by:
scopein interfaceFeatureProvider- Parameters:
name- scope name.- Returns:
- feature provider under scope name
-
makeProvider
-