Class WaiterExecutorHelper<T>

    • Method Detail

      • createWaiterResponse

        public WaiterResponse<T> createWaiterResponse​(software.amazon.awssdk.utils.Either<T,​Throwable> responseOrException,
                                                      int attempts)
      • firstWaiterAcceptorIfMatched

        public Optional<WaiterAcceptor<? super T>> firstWaiterAcceptorIfMatched​(software.amazon.awssdk.utils.Either<T,​Throwable> responseOrException)
      • computeNextDelayInMills

        public long computeNextDelayInMills​(int attemptNumber)
      • exceedsMaxWaitTime

        public boolean exceedsMaxWaitTime​(long startTime,
                                          long nextDelayInMills)
      • nextDelayOrUnretryableException

        public software.amazon.awssdk.utils.Either<Long,​SdkClientException> nextDelayOrUnretryableException​(int attemptNumber,
                                                                                                                  long startTime)
      • noneMatchException

        public SdkClientException noneMatchException​(software.amazon.awssdk.utils.Either<T,​Throwable> responseOrException)