-
public class RetryTimerClass to manage retry timing for event sending
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceRetryTimer.RetryTimerListenerListener of this retry Timer
-
Constructor Summary
Constructors Constructor Description RetryTimer(Context context, RetryTimer.RetryTimerListener listener)Constructor
-
Method Summary
Modifier and Type Method Description booleanisWaiting()Is the retry timer currently waiting for a retry voidreschedule()Schedule a retry for the current taskMethod to call when a send of events has failed voidreset()Reset all flags of this retry timerMethod to call when a send of events succeed or whenthis retry timer has reached the max retries threshold -
-
Constructor Detail
-
RetryTimer
RetryTimer(Context context, RetryTimer.RetryTimerListener listener)
Constructor- Parameters:
context- contextlistener- callback
-
-
Method Detail
-
isWaiting
boolean isWaiting()
Is the retry timer currently waiting for a retry
-
reschedule
void reschedule()
Schedule a retry for the current taskMethod to call when a send of events has failed
-
reset
void reset()
Reset all flags of this retry timerMethod to call when a send of events succeed or whenthis retry timer has reached the max retries threshold
-
-
-
-