Class BLRetryingUploader
java.lang.Object
com.io7m.brooklime.vanilla.internal.BLRetryingUploader
An uploader that retries on failure.
-
Constructor Summary
ConstructorsConstructorDescriptionBLRetryingUploader(ScheduledExecutorService inExecutor, HttpClient inClient, URI inServiceURI, URI inTargetURI, Path inFile, int inFileIndex, int inFileCount, Duration inRetryDelay, int inMaxRetries, BLProgressCounter inCounter) An uploader that retries on failure. -
Method Summary
-
Constructor Details
-
BLRetryingUploader
public BLRetryingUploader(ScheduledExecutorService inExecutor, HttpClient inClient, URI inServiceURI, URI inTargetURI, Path inFile, int inFileIndex, int inFileCount, Duration inRetryDelay, int inMaxRetries, BLProgressCounter inCounter) An uploader that retries on failure.- Parameters:
inExecutor- A scheduled executor for statisticsinClient- The HTTP clientinServiceURI- The service URIinTargetURI- The target URIinFile- The fileinFileIndex- The file indexinFileCount- The file countinRetryDelay- The retry delayinMaxRetries- The maximum number of retriesinCounter- The progress counter
-
-
Method Details
-
execute
Execute the upload.- Throws:
BLException- On errors
-