TimeoutTracker Class

  • java.lang.Object
    • com.microsoft.azure.servicebus.primitives.TimeoutTracker

public class TimeoutTracker

Constructor Summary

Constructor Description
TimeoutTracker(Duration timeout, boolean startTrackingTimeout)

Method Summary

Modifier and Type Method and Description
TimeoutTracker 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