Class EnvironmentHazelcastCache

java.lang.Object
org.qubership.atp.environments.cache.EnvironmentHazelcastCache
All Implemented Interfaces:
org.springframework.cache.Cache

public class EnvironmentHazelcastCache extends Object implements org.springframework.cache.Cache
  • Constructor Details

    • EnvironmentHazelcastCache

      public EnvironmentHazelcastCache(com.hazelcast.map.IMap<Object,Object> map, int ttl, TimeUnit timeUnit)
      Sprint related Cache implementation for Environment.
  • Method Details

    • setTtl

      public void setTtl(int ttl)
    • setTimeUnit

      public void setTimeUnit(TimeUnit timeUnit)
    • getName

      public String getName()
      Specified by:
      getName in interface org.springframework.cache.Cache
    • getNativeCache

      public com.hazelcast.map.IMap<Object,Object> getNativeCache()
      Specified by:
      getNativeCache in interface org.springframework.cache.Cache
    • get

      public org.springframework.cache.Cache.ValueWrapper get(Object key)
      Specified by:
      get in interface org.springframework.cache.Cache
    • get

      public <T> T get(Object key, Class<T> type)
      get system cache entity.
      Specified by:
      get in interface org.springframework.cache.Cache
      Returns:
      system cache entity
    • get

      public <T> T get(Object key, Callable<T> valueLoader)
      get system cache entity.
      Specified by:
      get in interface org.springframework.cache.Cache
      Returns:
      system cache entity
    • put

      public void put(Object key, Object value)
      Specified by:
      put in interface org.springframework.cache.Cache
    • toStoreValue

      protected Object toStoreValue(Object value)
    • fromStoreValue

      protected Object fromStoreValue(Object value)
    • evict

      public void evict(Object key)
      Specified by:
      evict in interface org.springframework.cache.Cache
    • clear

      public void clear()
      Specified by:
      clear in interface org.springframework.cache.Cache
    • putIfAbsent

      public org.springframework.cache.Cache.ValueWrapper putIfAbsent(Object key, Object value)
      Specified by:
      putIfAbsent in interface org.springframework.cache.Cache
    • setReadTimeout

      public void setReadTimeout(long readTimeout)
    • getReadTimeout

      public long getReadTimeout()