public class DestinationFromFileCreation extends Object implements Destination
| Modifier and Type | Field and Description |
|---|---|
protected Path |
fileBeingCreated
The disposable of the fileCreation
|
protected io.reactivex.rxjava3.core.Single<? extends FileCreation> |
fileCreation |
| Constructor and Description |
|---|
DestinationFromFileCreation(Path fileBeingCreated,
io.reactivex.rxjava3.core.Single<? extends FileCreation> fileCreation) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelCreation()
Cancels this destination's underlying fileCreation process and cancel it
Has no effect if the process already completed
|
String |
getCreationStatus()
Get a description of the creation status.
|
Path |
getFileBeingCreated()
The file being created once there is a subscription to the single
|
io.reactivex.rxjava3.core.Single<? extends FileCreation> |
getFileCreation() |
io.reactivex.rxjava3.core.Single<DestinationFromFile> |
materialize(Supplier<Path> preferredPathCallback)
Materialize the destination to a given file.
|
io.reactivex.rxjava3.core.Single<InputStreamSupplier> |
prepareStream()
This method requests a supplier for inputstreams.
|
FilterConfig |
transferTo(FilterEngine engine) |
protected io.reactivex.rxjava3.core.Single<? extends FileCreation> fileCreation
protected Path fileBeingCreated
public DestinationFromFileCreation(Path fileBeingCreated, io.reactivex.rxjava3.core.Single<? extends FileCreation> fileCreation)
fileBeingCreated - fileCreation - A single representing the file creation and whose value is CACHED!public void cancelCreation()
cancelCreation in interface Destinationpublic io.reactivex.rxjava3.core.Single<? extends FileCreation> getFileCreation()
public Path getFileBeingCreated()
public FilterConfig transferTo(FilterEngine engine)
transferTo in interface Destinationpublic io.reactivex.rxjava3.core.Single<InputStreamSupplier> prepareStream()
DestinationprepareStream in interface Destinationpublic io.reactivex.rxjava3.core.Single<DestinationFromFile> materialize(Supplier<Path> preferredPathCallback)
Destinationmaterialize in interface Destinationpublic String getCreationStatus()
DestinationgetCreationStatus in interface DestinationCopyright © 2020. All rights reserved.