public interface ConsistencyGuard
| Modifier and Type | Interface and Description |
|---|---|
static class |
ConsistencyGuard.FileVisibility
File Visibility.
|
| Modifier and Type | Method and Description |
|---|---|
default void |
waitTill(String dirPath,
List<String> files,
ConsistencyGuard.FileVisibility targetVisibility)
Wait Till target visibility is reached.
|
void |
waitTillAllFilesAppear(String dirPath,
List<String> files)
Wait till all passed files belonging to a directory shows up in the listing.
|
void |
waitTillAllFilesDisappear(String dirPath,
List<String> files)
Wait till all passed files belonging to a directory disappears from listing.
|
void |
waitTillFileAppears(StoragePath filePath)
Wait for file to be listable based on configurable timeout.
|
void |
waitTillFileDisappears(StoragePath filePath)
Wait for file to be listable based on configurable timeout.
|
void waitTillFileAppears(StoragePath filePath) throws IOException, TimeoutException
filePath - IOException - when having trouble listing the pathTimeoutException - when retries exhaustedvoid waitTillFileDisappears(StoragePath filePath) throws IOException, TimeoutException
filePath - IOException - when having trouble listing the pathTimeoutException - when retries exhaustedvoid waitTillAllFilesAppear(String dirPath, List<String> files) throws IOException, TimeoutException
IOExceptionTimeoutExceptionvoid waitTillAllFilesDisappear(String dirPath, List<String> files) throws IOException, TimeoutException
IOExceptionTimeoutExceptiondefault void waitTill(String dirPath, List<String> files, ConsistencyGuard.FileVisibility targetVisibility) throws IOException, TimeoutException
dirPath - Directory Pathfiles - FilestargetVisibility - Target VisibilityIOExceptionTimeoutExceptionCopyright © 2025 The Apache Software Foundation. All rights reserved.