Skip to content

Commit 98ed820

Browse files
committed
TimedAttempt: add getWaitTime()
1 parent 2f12cb9 commit 98ed820

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/utility/time/TimedAttempt.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,7 @@ bool TimedAttempt::isExpired() {
7373
unsigned int TimedAttempt::getRetryCount() {
7474
return _retryCount;
7575
}
76+
77+
unsigned int TimedAttempt::getWaitTime() {
78+
return _retry_delay;
79+
}

src/utility/time/TimedAttempt.h

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class TimedAttempt {
2929
bool isRetry();
3030
bool isExpired();
3131
unsigned int getRetryCount();
32+
unsigned int getWaitTime();
3233

3334
private:
3435
unsigned long _minDelay;

0 commit comments

Comments
 (0)