Class MirrorNodeHttpClient.CallDeadline

java.lang.Object
com.hedera.hashgraph.sdk.MirrorNodeHttpClient.CallDeadline
Enclosing class:
MirrorNodeHttpClient

static final class MirrorNodeHttpClient.CallDeadline extends Object
The one budget that spans a whole call, every page and every backoff included.

A call is one query execution; an attempt is one exchange. The distinction is load-bearing: a paginated read is one call and many attempts, and a k-page walk under a per-exchange reading would get k times the budget while claiming to be bounded.

  • Method Details

    • startingNow

      static MirrorNodeHttpClient.CallDeadline startingNow(Duration total)
      Start the clock.
      Parameters:
      total - the whole budget for the call; must be positive
      Returns:
      the new tracker
    • remainingNanos

      long remainingNanos()
      How much of the budget is left.
      Returns:
      the remaining nanoseconds, which may be zero or negative