Package org.ff4j.hazelcast
Class CacheManagerHazelCast
java.lang.Object
org.ff4j.cache.FF4jJCacheManager
org.ff4j.hazelcast.CacheManagerHazelCast
- All Implemented Interfaces:
org.ff4j.cache.FF4JCacheManager
public class CacheManagerHazelCast
extends org.ff4j.cache.FF4jJCacheManager
Implementation of
CacheManager for feautres and HazelCast- Author:
- Cedrick Lunven (@clunven)
-
Field Summary
Fields inherited from class org.ff4j.cache.FF4jJCacheManager
CACHENAME_FEATURES, CACHENAME_PROPERTIES, featuresCache, propertiesCache -
Constructor Summary
ConstructorsConstructorDescriptionInitialization of HazelCast with default config.CacheManagerHazelCast(com.hazelcast.config.Config hazelCastConfig, Properties systemProperties) Initialization of HazelCast with provided config (and properties)CacheManagerHazelCast(String xmlConfigFileName, Properties systemProperties) Initialization of HazelCast with config fileName (and properties) -
Method Summary
Modifier and TypeMethodDescriptioncom.hazelcast.config.ConfigGetter accessor for attribute 'hazelCastConfig'.javax.cache.spi.CachingProviderinitCachingProvider(String className) voidsetHazelCastConfig(com.hazelcast.config.Config hazelCastConfig) Setter accessor for attribute 'hazelCastConfig'.Methods inherited from class org.ff4j.cache.FF4jJCacheManager
clearFeatures, clearProperties, createCacheForFeatures, createCacheForProperties, evictFeature, evictProperty, getCacheManager, getCacheProviderName, getCachingProvider, getFeature, getFeatureCacheConfiguration, getFeatureNativeCache, getFeaturesCache, getNativeCache, getPropertiesCache, getProperty, getPropertyCacheConfiguration, getPropertyNativeCache, listCachedFeatureNames, listCachedPropertyNames, putFeature, putProperty, setCachingProvider, setFeaturesCacheMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ff4j.cache.FF4JCacheManager
onException
-
Constructor Details
-
CacheManagerHazelCast
public CacheManagerHazelCast()Initialization of HazelCast with default config.- Parameters:
hazelCastConfig-
-
CacheManagerHazelCast
Initialization of HazelCast with config fileName (and properties)- Parameters:
hazelCastConfig-
-
CacheManagerHazelCast
public CacheManagerHazelCast(com.hazelcast.config.Config hazelCastConfig, Properties systemProperties) Initialization of HazelCast with provided config (and properties)- Parameters:
hazelCastConfig-
-
-
Method Details
-
initCachingProvider
- Overrides:
initCachingProviderin classorg.ff4j.cache.FF4jJCacheManager
-
getHazelCastConfig
public com.hazelcast.config.Config getHazelCastConfig()Getter accessor for attribute 'hazelCastConfig'.- Returns:
- current value of 'hazelCastConfig'
-
setHazelCastConfig
public void setHazelCastConfig(com.hazelcast.config.Config hazelCastConfig) Setter accessor for attribute 'hazelCastConfig'.- Parameters:
hazelCastConfig- new value for 'hazelCastConfig '
-