Class InfinispanJCacheCacheResolver

java.lang.Object
com.giffing.bucket4j.spring.boot.starter.config.cache.jcache.InfinispanJCacheCacheResolver
All Implemented Interfaces:
CacheResolver, SyncCacheResolver

public class InfinispanJCacheCacheResolver
extends Object
implements SyncCacheResolver
To use Infinispan you need a special bucket4j-infinispan dependency. https://github.com/vladimir-bukhtoyarov/bucket4j/blob/master/doc-pages/infinispan.md Question: Bucket4j already supports JCache since version 1.2. Why it was needed to introduce direct support for Infinispan? Answer: When you want to use Bucket4j together with Infinispan, you must always use bucket4j-infinispan module instead of bucket4j-jcache, because Infinispan does not provide mutual exclusion for entry-processors. Any attempt to use Infinispan via bucket4j-jcache will be failed with UnsupportedOperationException exception at bucket construction time.
  • Constructor Details

    • InfinispanJCacheCacheResolver

      public InfinispanJCacheCacheResolver​(org.infinispan.manager.CacheContainer cacheContainer)
  • Method Details