Module org.elasticsearch.xcore
Interface RemainingTime
-
Method Summary
Static Methods
-
Method Details
-
from
Create aSupplierthat returns a decreasingTimeValueon each invocation, representing the amount of time until the call times out. The timer starts when this method is called and counts down from remainingTime to 0. currentTime should return the most up-to-date system time, for example Instant.now() or Clock.instant().TimeValue.MAX_VALUEis a special case where the remaining time is always TimeValue.MAX_VALUE.
-