Modifier and Type | Method | Description |
---|---|---|
static WaitResultBuilder1<Collection<WatchEvent<Path>>> |
WaitFile.eventIn(Path directory,
WatchEvent.Kind<Path>... events) |
Wait for a folder to have some event.
|
static <T extends Exception> |
WaitResult.forException(Callable<?> action,
Class<T> targetException) |
Start the builder to create an instance of
CompletableFuture based on
repeated control of a call that is assumed as done when a a specific
exception is thrown. |
static WaitResultBuilder1<Collection<Path>> |
WaitFile.newFileIn(Path directory) |
Wait for a folder to contains new entry.
|
static WaitResultBuilder1<Path> |
WaitFile.newFileNamedIn(Path directory,
String name) |
Wait for a folder to contains new entry based on his name.
|
static <T> WaitResultBuilder1<T> |
WaitResult.of(Callable<T> action) |
Start the builder to create an instance of
CompletableFuture based on
the result of the received action, with repetition until some condition. |
static <T> WaitResultBuilder1<T> |
WaitResult.of(Callable<T> action,
Runnable actionOnFinish) |
Start the builder to create an instance of
CompletableFuture based on
the result of the received action, with repetition until some condition. |
static <T> WaitResultBuilder1<T> |
WaitResult.ofSupplier(Supplier<T> supplier) |
Start the builder to create an instance of
CompletableFuture based on
execution of the received action, with repetition until some condition. |
static WaitResultBuilder1<Collection<Path>> |
WaitFile.removeFileFrom(Path directory) |
Wait for a folder to have entry removed.
|
Copyright © 2021. All rights reserved.