Class RefreshAndDoubleCheckOnFailUnlessStatusInvalid<S extends Enum<S>,​C extends ComputeMetadataIncludingStatus<S>>

    • Field Detail

      • logger

        protected Logger logger
    • Constructor Detail

      • RefreshAndDoubleCheckOnFailUnlessStatusInvalid

        public RefreshAndDoubleCheckOnFailUnlessStatusInvalid​(S intended,
                                                              Set<S> invalids)
    • Method Detail

      • apply

        public boolean apply​(AtomicReference<C> atomicResource)
        Specified by:
        apply in interface com.google.common.base.Predicate<S extends Enum<S>>
      • checkStatus

        public boolean checkStatus​(C resource)
      • refreshOrNull

        protected abstract C refreshOrNull​(C resource)