TimeoutTracker Class
- java.
lang. Object - com.
microsoft. azure. servicebus. primitives. TimeoutTracker
- com.
public class TimeoutTracker
Constructor Summary
Constructor | Description | |
---|---|---|
TimeoutTracker(Duration timeout, boolean startTrackingTimeout) |
Method Summary
Modifier and Type | Method and Description |
---|---|
Timeout |
create(Duration timeout) |
Duration | elapsed() |
Duration | remaining() |
Constructor Details
TimeoutTracker
public TimeoutTracker(Duration timeout, boolean startTrackingTimeout)
Parameters:
timeout
- original operationTimeout
startTrackingTimeout
- whether/not to start the timeout tracking - right now. if not started now, timer tracking will start upon the first call to TimeoutTracker#elapsed()/TimeoutTracker#remaining()
Method Details
create
public static TimeoutTracker create(Duration timeout)
Parameters:
timeout
elapsed
public Duration elapsed()
remaining
public Duration remaining()
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java