- All Implemented Interfaces:
- com.google.common.base.Predicate<AtomicReference<C>>
- Direct Known Subclasses:
- RefreshImageAndDoubleCheckOnFailUnlessStatusInvalid, RefreshNodeAndDoubleCheckOnFailUnlessStatusInvalid
@Singleton
public abstract class RefreshAndDoubleCheckOnFailUnlessStatusInvalid<S extends Enum<S>,C extends ComputeMetadataIncludingStatus<S>>
extends Object
implements com.google.common.base.Predicate<AtomicReference<C>>
Keep an atomic reference to a
resource, so as to eliminate a redundant ComputeService#getNodeMetadata
call after the
predicate passes.
- Author:
- Adrian Cole