Package org.apache.jackrabbit.oak.run
Class Downloader
java.lang.Object
org.apache.jackrabbit.oak.run.Downloader
- All Implemented Interfaces:
Closeable
,AutoCloseable
Generic concurrent file downloader which uses Java NIO channels to potentially leverage OS internal optimizations.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
-
Constructor Summary
ConstructorsConstructorDescriptionDownloader
(int concurrency, int connectTimeoutMs, int readTimeoutMs) Downloader
(int concurrency, int connectTimeoutMs, int readTimeoutMs, int maxRetries, long retryInitialInterval, boolean failOnError, int slowLogThreshold, String checksumAlgorithm, int bufferSize) -
Method Summary
-
Constructor Details
-
Downloader
public Downloader(int concurrency, int connectTimeoutMs, int readTimeoutMs) -
Downloader
public Downloader(int concurrency, int connectTimeoutMs, int readTimeoutMs, int maxRetries, long retryInitialInterval, boolean failOnError, int slowLogThreshold, String checksumAlgorithm, int bufferSize)
-
-
Method Details
-
offer
-
waitUntilComplete
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-