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

    • Field Detail

      • deletedStatus

        protected final S extends Enum<S> deletedStatus
      • logger

        protected Logger logger
    • Constructor Detail

      • TrueIfNullOrDeletedRefreshAndDoubleCheckOnFalse

        protected TrueIfNullOrDeletedRefreshAndDoubleCheckOnFalse​(S deletedStatus)
    • 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)