Class TimeoutTracker
- java.lang.Object
-
- com.microsoft.azure.servicebus.primitives.TimeoutTracker
-
public class TimeoutTracker extends Object
-
-
Constructor Summary
Constructors Constructor Description TimeoutTracker(Duration timeout, boolean startTrackingTimeout)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TimeoutTracker
create(Duration timeout)
Duration
elapsed()
Duration
remaining()
-
-
-
Constructor Detail
-
TimeoutTracker
public TimeoutTracker(Duration timeout, boolean startTrackingTimeout)
- Parameters:
timeout
- original operationTimeoutstartTrackingTimeout
- whether/not to start the timeout tracking - right now. if not started now, timer tracking will start upon the first call toelapsed()
/remaining()
-
-
Method Detail
-
create
public static TimeoutTracker create(Duration timeout)
-
remaining
public Duration remaining()
-
elapsed
public Duration elapsed()
-
-