Class Delayer

java.lang.Object
com.hedera.hashgraph.sdk.Delayer

final class Delayer extends Object
Utility class used internally by the sdk.
  • Method Details

    • delayBackOff

      static CompletableFuture<Void> delayBackOff(int attempt, Executor executor)
      Set the delay backoff attempts.
      Parameters:
      attempt - the attempts
      executor - the executor
      Returns:
      the updated future
    • delayFor

      static CompletableFuture<Void> delayFor(long milliseconds, Executor executor)
      Set the delay backoff milliseconds.
      Parameters:
      milliseconds - the milliseconds
      executor - the executor
      Returns:
      the updated future