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

    Constructors
    Constructor
    Description
    Initialization 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 Type
    Method
    Description
    com.hazelcast.config.Config
    Getter accessor for attribute 'hazelCastConfig'.
    javax.cache.spi.CachingProvider
    void
    setHazelCastConfig(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, setFeaturesCache

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.ff4j.cache.FF4JCacheManager

    onException
  • Constructor Details

    • CacheManagerHazelCast

      public CacheManagerHazelCast()
      Initialization of HazelCast with default config.
      Parameters:
      hazelCastConfig -
    • CacheManagerHazelCast

      public CacheManagerHazelCast(String xmlConfigFileName, Properties systemProperties)
      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

      public javax.cache.spi.CachingProvider initCachingProvider(String className)
      Overrides:
      initCachingProvider in class org.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 '