-
public interface UploadSchedulerStrategyDefines the strategy used to schedule the waiting period between batch uploads.
-
-
Method Summary
-
-
Method Detail
-
getMsDelayUntilNextUpload
abstract Long getMsDelayUntilNextUpload(String featureName, Integer uploadAttempts, Integer lastStatusCode, Throwable throwable)
Should return the delay in milliseconds to wait until the next upload attempt is performed.
- Parameters:
featureName- the name of the feature for which a new upload will be scheduled.uploadAttempts- the number of requests that were attempted during the last upload batch.lastStatusCode- the HTTP status code of the last request (if available).throwable- the exception thrown during the upload process (if any).
-
-
-
-