Class HazelcastBucket4jCacheConfiguration
java.lang.Object
com.giffing.bucket4j.spring.boot.starter.config.cache.hazelcast.HazelcastBucket4jCacheConfiguration
@Configuration @ConditionalOnClass(com.hazelcast.spring.cache.HazelcastCacheManager.class) @ConditionalOnBean(com.hazelcast.spring.cache.HazelcastCacheManager.class) @ConditionalOnMissingBean(AsyncCacheResolver.class) @ConditionalOnProperty(prefix="bucket4j", name="cache-to-use", havingValue="hazelcast", matchIfMissing=true) public class HazelcastBucket4jCacheConfiguration extends Object
Configures the asynchronous support for Hazelcast. The synchronous support of Hazelcast
is already provided by the
JCacheBucket4jConfiguration. It uses the HazelcastInstance
to access the HazelcastInstance to retrieve the cache.-
Constructor Summary
Constructors Constructor Description HazelcastBucket4jCacheConfiguration(com.hazelcast.spring.cache.HazelcastCacheManager hazelcastCacheManager) -
Method Summary
Modifier and Type Method Description AsyncCacheResolverhazelcastCacheResolver()
-
Constructor Details
-
HazelcastBucket4jCacheConfiguration
public HazelcastBucket4jCacheConfiguration(com.hazelcast.spring.cache.HazelcastCacheManager hazelcastCacheManager)
-
-
Method Details
-
hazelcastCacheResolver
-