public interface FF4JCacheManager
FeatureStore to enhance performances.| Modifier and Type | Method and Description |
|---|---|
void |
clearFeatures()
Remove everything present within feature cache.
|
void |
clearProperties()
Remove everything present within properties cache.
|
void |
evictFeature(String featureId)
Remove a feature from cache by its identifier.
|
void |
evictProperty(String propertyName)
Remove a property from cache by its identifier.
|
String |
getCacheProviderName()
Get name of expected cache.
|
Feature |
getFeature(String featureId)
Return
Feature stored in cache. |
Object |
getFeatureNativeCache()
Access to embedded implementation of cache for Features.
|
Property<?> |
getProperty(String featureId)
Return
PropertyString stored in cache. |
Object |
getPropertyNativeCache()
Access to embedded implementation of cach for Properties
|
Set<String> |
listCachedFeatureNames()
List feature names in cache.
|
Set<String> |
listCachedPropertyNames()
List property names in cache.
|
void |
putFeature(Feature feat)
Add feature to cache.
|
void |
putProperty(Property<?> feat)
Add property to cache.
|
void clearFeatures()
void clearProperties()
void evictFeature(String featureId)
featureId - feature identifiervoid evictProperty(String propertyName)
propertyName - property unique identifiervoid putFeature(Feature feat)
feat - target feature to be cachedvoid putProperty(Property<?> feat)
feat - target property to be cachedFeature getFeature(String featureId)
Feature stored in cache.featureId - target feature identifierFeatureNotFoundException as FeatureStore).Property<?> getProperty(String featureId)
PropertyString stored in cache.featureId - target feature identifierFeatureNotFoundException as FeatureStore).Set<String> listCachedFeatureNames()
Set<String> listCachedPropertyNames()
Object getFeatureNativeCache()
Object getPropertyNativeCache()
String getCacheProviderName()
Copyright © 2013–2017 FF4J. All rights reserved.