Class InfinispanJCacheCacheResolver

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

public class InfinispanJCacheCacheResolver
extends java.lang.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 Summary

    Constructors 
    Constructor Description
    InfinispanJCacheCacheResolver​(org.infinispan.manager.CacheContainer cacheContainer)  
  • Method Summary

    Modifier and Type Method Description
    io.github.bucket4j.grid.ProxyManager<java.lang.String> resolve​(java.lang.String cacheName)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • resolve

      public io.github.bucket4j.grid.ProxyManager<java.lang.String> resolve​(java.lang.String cacheName)
      Specified by:
      resolve in interface CacheResolver