Class HazelcastCacheConfigurationCustomizer
java.lang.Object
fr.paris.lutece.plugins.cache.hazelcast.HazelcastCacheConfigurationCustomizer
- All Implemented Interfaces:
fr.paris.lutece.portal.service.cache.ICacheConfigurationCustomizer
@ApplicationScoped
public class HazelcastCacheConfigurationCustomizer
extends Object
implements fr.paris.lutece.portal.service.cache.ICacheConfigurationCustomizer
Gives the caches created on Hazelcast the size of their Lutece settings (maxElementsInMemory). JCache has no size:
without this customizer every Hazelcast cache keeps the default eviction of 10000 entries.
Hazelcast applies the configuration only when the cache is created in the cluster: a cache that already exists, or that the member configuration declares by name, keeps its own settings. The size is counted per member.
This bean does not use the Hazelcast API itself (see HazelcastCacheConfigurations): deployed by mistake on a
site without Hazelcast, it is discovered and does nothing.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
HazelcastCacheConfigurationCustomizer
public HazelcastCacheConfigurationCustomizer()
-
-
Method Details
-
supports
public boolean supports(javax.cache.spi.CachingProvider provider) - Specified by:
supportsin interfacefr.paris.lutece.portal.service.cache.ICacheConfigurationCustomizer
-
customize
public <K,V> javax.cache.configuration.Configuration<K,V> customize(String strCacheName, javax.cache.configuration.Configuration<K, V> configuration, fr.paris.lutece.portal.service.cache.CacheSettings settings) - Specified by:
customizein interfacefr.paris.lutece.portal.service.cache.ICacheConfigurationCustomizer
-