Class AWSEC2CreateSecurityGroupIfNeeded
java.lang.Object
com.google.common.cache.CacheLoader<RegionAndName,String>
org.jclouds.aws.ec2.compute.loaders.AWSEC2CreateSecurityGroupIfNeeded
@Singleton
public class AWSEC2CreateSecurityGroupIfNeeded
extends com.google.common.cache.CacheLoader<RegionAndName,String>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.common.cache.CacheLoader
com.google.common.cache.CacheLoader.InvalidCacheLoadException, com.google.common.cache.CacheLoader.UnsupportedLoadingOperationException
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Logger
protected final AWSSecurityGroupApi
protected final com.google.common.base.Predicate
<RegionAndName> -
Constructor Summary
ConstructorsConstructorDescriptionAWSEC2CreateSecurityGroupIfNeeded
(AWSEC2Api ec2Api, com.google.common.base.Function<String, String> groupNameToId, com.google.common.base.Predicate<RegionAndName> securityGroupEventualConsistencyDelay) AWSEC2CreateSecurityGroupIfNeeded
(AWSSecurityGroupApi securityApi, com.google.common.base.Function<String, String> groupNameToId, com.google.common.base.Predicate<RegionAndName> securityGroupEventualConsistencyDelay) -
Method Summary
Methods inherited from class com.google.common.cache.CacheLoader
asyncReloading, from, from, loadAll, reload
-
Field Details
-
logger
-
securityApi
-
securityGroupEventualConsistencyDelay
protected final com.google.common.base.Predicate<RegionAndName> securityGroupEventualConsistencyDelay -
groupNameToId
-
-
Constructor Details
-
AWSEC2CreateSecurityGroupIfNeeded
@Inject public AWSEC2CreateSecurityGroupIfNeeded(AWSEC2Api ec2Api, @Named("SECGROUP_NAME_TO_ID") com.google.common.base.Function<String, String> groupNameToId, @Named("SECURITY") com.google.common.base.Predicate<RegionAndName> securityGroupEventualConsistencyDelay) -
AWSEC2CreateSecurityGroupIfNeeded
public AWSEC2CreateSecurityGroupIfNeeded(AWSSecurityGroupApi securityApi, @Named("SECGROUP_NAME_TO_ID") com.google.common.base.Function<String, String> groupNameToId, @Named("SECURITY") com.google.common.base.Predicate<RegionAndName> securityGroupEventualConsistencyDelay)
-
-
Method Details
-
load
- Specified by:
load
in classcom.google.common.cache.CacheLoader<RegionAndName,
String>
-