Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk
Class MirrorNodeHttpClient.CallDeadline
java.lang.Object
com.hedera.hashgraph.sdk.MirrorNodeHttpClient.CallDeadline
- Enclosing class:
MirrorNodeHttpClient
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 Summary
Modifier and TypeMethodDescription(package private) longHow much of the budget is left.(package private) static MirrorNodeHttpClient.CallDeadlinestartingNow(Duration total) Start the clock.
-
Method Details
-
startingNow
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
-