Class HazelcastCacheResolver

java.lang.Object
com.giffing.bucket4j.spring.boot.starter.config.cache.hazelcast.HazelcastCacheResolver
All Implemented Interfaces:
AsyncCacheResolver, CacheResolver

public class HazelcastCacheResolver
extends java.lang.Object
implements AsyncCacheResolver
Creates the ProxyManager with Bucket4js Hazelcast class. It uses the HazelcastInstance to retrieve the needed cache.
  • Constructor Summary

    Constructors 
    Constructor Description
    HazelcastCacheResolver​(com.hazelcast.core.HazelcastInstance hazelcastInstance)  
  • 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

    • HazelcastCacheResolver

      public HazelcastCacheResolver​(com.hazelcast.core.HazelcastInstance hazelcastInstance)
  • Method Details

    • resolve

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