Class RefreshImageAndDoubleCheckOnFailUnlessStatusInvalid
- java.lang.Object
-
- org.jclouds.compute.predicates.internal.RefreshAndDoubleCheckOnFailUnlessStatusInvalid<Image.Status,Image>
-
- org.jclouds.compute.predicates.internal.RefreshImageAndDoubleCheckOnFailUnlessStatusInvalid
-
- All Implemented Interfaces:
com.google.common.base.Predicate<AtomicReference<Image>>
,Predicate<AtomicReference<Image>>
- Direct Known Subclasses:
AtomicImageAvailable
@Singleton public class RefreshImageAndDoubleCheckOnFailUnlessStatusInvalid extends RefreshAndDoubleCheckOnFailUnlessStatusInvalid<Image.Status,Image>
The point of RefreshAndDoubleCheckOnFailUnlessStateInvalid is to keep an atomic reference to a image, so as to eliminate a redundantComputeService#getImage
call after the predicate passes.
-
-
Field Summary
-
Fields inherited from class org.jclouds.compute.predicates.internal.RefreshAndDoubleCheckOnFailUnlessStatusInvalid
logger
-
-
Constructor Summary
Constructors Constructor Description RefreshImageAndDoubleCheckOnFailUnlessStatusInvalid(Image.Status intended, Set<Image.Status> invalids, GetImageStrategy client)
RefreshImageAndDoubleCheckOnFailUnlessStatusInvalid(Image.Status intended, GetImageStrategy client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Image
refreshOrNull(Image resource)
-
Methods inherited from class org.jclouds.compute.predicates.internal.RefreshAndDoubleCheckOnFailUnlessStatusInvalid
apply, checkStatus
-
-
-
-
Constructor Detail
-
RefreshImageAndDoubleCheckOnFailUnlessStatusInvalid
@Inject public RefreshImageAndDoubleCheckOnFailUnlessStatusInvalid(Image.Status intended, GetImageStrategy client)
-
RefreshImageAndDoubleCheckOnFailUnlessStatusInvalid
public RefreshImageAndDoubleCheckOnFailUnlessStatusInvalid(Image.Status intended, Set<Image.Status> invalids, GetImageStrategy client)
-
-
Method Detail
-
refreshOrNull
protected Image refreshOrNull(Image resource)
- Specified by:
refreshOrNull
in classRefreshAndDoubleCheckOnFailUnlessStatusInvalid<Image.Status,Image>
-
-