public class FindSecurityGroupOrCreate extends com.google.common.cache.CacheLoader<RegionAndName,SecurityGroupInRegion>
Modifier and Type | Field and Description |
---|---|
protected com.google.common.base.Function<RegionSecurityGroupNameAndPorts,SecurityGroupInRegion> |
groupCreator |
protected com.google.common.base.Predicate<AtomicReference<RegionAndName>> |
returnSecurityGroupExistsInRegion |
Constructor and Description |
---|
FindSecurityGroupOrCreate(com.google.common.base.Predicate<AtomicReference<RegionAndName>> returnSecurityGroupExistsInRegion,
com.google.common.base.Function<RegionSecurityGroupNameAndPorts,SecurityGroupInRegion> groupCreator) |
Modifier and Type | Method and Description |
---|---|
SecurityGroupInRegion |
load(RegionAndName in) |
String |
toString() |
protected final com.google.common.base.Predicate<AtomicReference<RegionAndName>> returnSecurityGroupExistsInRegion
protected final com.google.common.base.Function<RegionSecurityGroupNameAndPorts,SecurityGroupInRegion> groupCreator
@Inject public FindSecurityGroupOrCreate(@Named(value="SECURITYGROUP_PRESENT") com.google.common.base.Predicate<AtomicReference<RegionAndName>> returnSecurityGroupExistsInRegion, com.google.common.base.Function<RegionSecurityGroupNameAndPorts,SecurityGroupInRegion> groupCreator)
public SecurityGroupInRegion load(RegionAndName in)
load
in class com.google.common.cache.CacheLoader<RegionAndName,SecurityGroupInRegion>
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.