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 |
---|---|
static
Timeout |
create(Duration timeout) |
Duration | elapsed() |
Duration | remaining() |
Methods inherited from java.lang.Object
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 elapsed()/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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for