Annotation Type ReadAfterWriteConsistent
-
@Target(TYPE) @Retention(RUNTIME) public @interface ReadAfterWriteConsistent
Some storage backends do not guarantee that a file immediately exists on the remote side after it is uploaded or moved.
This feature handles such cases by relaxing the strong assumption that a file is immediately available after creation due to upload or move operations.The
ReadAfterWriteConsistentFeatureTransferManager
throttles existence check using a simple exponential method:
throttle(n) = 3 ^ n * 100 ms
, with n being the current iteration
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.Class<? extends ReadAfterWriteConsistentFeatureExtension>
extension
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description int
maxRetries
Define how often a transfer manager will try to find a file on the remote side.int
maxWaitTime
Define the maximum wait time until a file has to exist on the remote side (given in milliseconds).
-
-
-
Element Detail
-
extension
java.lang.Class<? extends ReadAfterWriteConsistentFeatureExtension> extension
- See Also:
ReadAfterWriteConsistentFeatureExtension
-
-
-
maxRetries
int maxRetries
Define how often a transfer manager will try to find a file on the remote side.- Default:
- 5
-
-
-
maxWaitTime
int maxWaitTime
Define the maximum wait time until a file has to exist on the remote side (given in milliseconds).- Default:
- 10000
-
-