Class LambdaCacheClient
- java.lang.Object
-
- com.netflix.spinnaker.clouddriver.lambda.cache.client.LambdaCacheClient
-
@Component public class LambdaCacheClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected com.netflix.spinnaker.cats.cache.CachecacheView
-
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 LambdaFunctionconvert(com.netflix.spinnaker.cats.cache.CacheData cacheData)Tget(java.lang.String key)java.util.Collection<T>getAll()java.util.Collection<T>getAll(java.lang.String account, java.lang.String region)
-
-
-
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.ymlregion- 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.
-
-