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