Package 

Interface UploadSchedulerStrategy


  • 
    public interface UploadSchedulerStrategy
    
                        

    Defines the strategy used to schedule the waiting period between batch uploads.

    • Method Summary

      Modifier and Type Method Description
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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).