public class FileCreationWrapper extends Object implements FileCreation
| Modifier and Type | Field and Description |
|---|---|
protected CompletableFuture<Path> |
future |
protected Path |
path |
| Constructor and Description |
|---|
FileCreationWrapper(Path path) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Optional method to cancel the creation
|
CompletableFuture<Path> |
future()
A completable future that fires when the file creation is complete
or an exception occurred
|
protected Path path
protected CompletableFuture<Path> future
public FileCreationWrapper(Path path)
public CompletableFuture<Path> future()
FileCreationfuture in interface FileCreationpublic void abort()
FileCreationabort in interface FileCreationCopyright © 2020. All rights reserved.