Class TimeoutTracker
- java.lang.Object
-
- com.microsoft.azure.eventhubs.impl.TimeoutTracker
-
public class TimeoutTracker extends Object
-
-
Constructor Summary
Constructors Constructor Description TimeoutTracker(Duration timeout, boolean startTrackingTimeout)
TimeoutTracker(Duration timeout, boolean startTrackingTimeout, String context)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TimeoutTracker
create(Duration timeout)
static TimeoutTracker
create(Duration timeout, String context)
Duration
elapsed()
String
getContext()
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)
-
create
public static TimeoutTracker create(Duration timeout, String context)
-
remaining
public Duration remaining()
-
elapsed
public Duration elapsed()
-
getContext
public String getContext()
-
-