Package com.batch.android.event
Class RetryTimer
- java.lang.Object
-
- com.batch.android.event.RetryTimer
-
public class RetryTimer extends java.lang.ObjectClass to manage retry timing for event sending
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRetryTimer.RetryTimerListenerListener of this retry Timer
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTAG
-
Constructor Summary
Constructors Constructor Description RetryTimer(android.content.Context context, RetryTimer.RetryTimerListener listener)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisWaiting()Is the retry timer currently waiting for a retryvoidreschedule()Schedule a retry for the current task Method to call when a send of events has failedvoidreset()Reset all flags of this retry timer Method to call when a send of events succeed or when this retry timer has reached the max retries threshold
-
-
-
Field Detail
-
TAG
public static final java.lang.String TAG
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RetryTimer
public RetryTimer(android.content.Context context, RetryTimer.RetryTimerListener listener)Constructor- Parameters:
context- contextlistener- callback
-
-
Method Detail
-
isWaiting
public boolean isWaiting()
Is the retry timer currently waiting for a retry- Returns:
- true is waiting
-
reschedule
public void reschedule()
Schedule a retry for the current task Method to call when a send of events has failed
-
reset
public void reset()
Reset all flags of this retry timer Method to call when a send of events succeed or when this retry timer has reached the max retries threshold
-
-