Class HazelcastCacheResolver

java.lang.Object
es.kukenan.smartfi.microservice.clients.cache.HazelcastCacheResolver
All Implemented Interfaces:
org.springframework.cache.interceptor.CacheResolver

@RefreshScope public class HazelcastCacheResolver extends Object implements org.springframework.cache.interceptor.CacheResolver
Class in charge to intercept cache resolver for hazelcast cache.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final org.springframework.cache.CacheManager
    CacheManager cacheManager.
    private String
    cache origin established.
  • Constructor Summary

    Constructors
    Constructor
    Description
    HazelcastCacheResolver(org.springframework.cache.CacheManager cacheManager)
    CustomCacheResolver constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    Collection<? extends org.springframework.cache.Cache>
    resolveCaches(org.springframework.cache.interceptor.CacheOperationInvocationContext<?> context)
     

    Methods inherited from class java.lang.Object

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

    • cacheManager

      private final org.springframework.cache.CacheManager cacheManager
      CacheManager cacheManager.
    • userCacheName

      @Value("${cache.client}") private String userCacheName
      cache origin established.
  • Constructor Details

    • HazelcastCacheResolver

      public HazelcastCacheResolver(org.springframework.cache.CacheManager cacheManager)
      CustomCacheResolver constructor.
      Parameters:
      cacheManager - cache manager.
  • Method Details

    • resolveCaches

      public Collection<? extends org.springframework.cache.Cache> resolveCaches(org.springframework.cache.interceptor.CacheOperationInvocationContext<?> context)
      Specified by:
      resolveCaches in interface org.springframework.cache.interceptor.CacheResolver