Class LambdaCacheClient


  • @Component
    public class LambdaCacheClient
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected com.netflix.spinnaker.cats.cache.Cache cacheView  
    • Constructor Summary

      Constructors 
      Constructor Description
      LambdaCacheClient​(com.netflix.spinnaker.cats.cache.Cache cacheView)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected LambdaFunction convert​(com.netflix.spinnaker.cats.cache.CacheData cacheData)  
      T get​(java.lang.String key)  
      java.util.Collection<T> getAll()  
      java.util.Collection<T> getAll​(java.lang.String account, java.lang.String region)  
      • Methods inherited from class java.lang.Object

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

      • cacheView

        protected final com.netflix.spinnaker.cats.cache.Cache cacheView
    • Constructor Detail

      • LambdaCacheClient

        @Autowired
        public LambdaCacheClient​(com.netflix.spinnaker.cats.cache.Cache cacheView)
    • Method Detail

      • convert

        protected LambdaFunction convert​(com.netflix.spinnaker.cats.cache.CacheData cacheData)
        Parameters:
        cacheData - CacheData that will be converted into an object.
        Returns:
        An object of the generic type.
      • getAll

        public java.util.Collection<T> getAll()
        Returns:
        A list of all generic type objects belonging to the key namespace.
      • getAll

        public java.util.Collection<T> getAll​(java.lang.String account,
                                              java.lang.String region)
        Parameters:
        account - name of the AWS account, as defined in clouddriver.yml
        region - region of the AWS account, as defined in clouddriver.yml
        Returns:
        A list of all generic type objects belonging to the account and region in the key namespace.
      • get

        public T get​(java.lang.String key)
        Parameters:
        key - A key within the key namespace that will be used to retrieve the object.
        Returns:
        An object of the generic type that is associated to the key.