Package com.sshtools.client.tasks
Class AbstractOptimisedTask.FileTransferProgressWrapper
java.lang.Object
com.sshtools.client.tasks.AbstractOptimisedTask.FileTransferProgressWrapper
- All Implemented Interfaces:
FileTransferProgress
- Enclosing class:
- AbstractOptimisedTask<TARGET,
LOCALFILE>
protected static class AbstractOptimisedTask.FileTransferProgressWrapper
extends Object
implements FileTransferProgress
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFileTransferProgressWrapper(FileTransferProgress delegate, Optional<FileTransferProgress> overallProgress, AtomicLong total) -
Method Summary
Modifier and TypeMethodDescriptionvoidThe transfer has completed.booleanThe transfer is cancelled.voidprogressed(long bytesSoFar) The transfer has progressedvoidThe transfer has started
-
Constructor Details
-
FileTransferProgressWrapper
protected FileTransferProgressWrapper(FileTransferProgress delegate, Optional<FileTransferProgress> overallProgress, AtomicLong total)
-
-
Method Details
-
started
Description copied from interface:FileTransferProgressThe transfer has started- Specified by:
startedin interfaceFileTransferProgress
-
isCancelled
public boolean isCancelled()Description copied from interface:FileTransferProgressThe transfer is cancelled. Implementations should return true if the user wants to cancel the transfer. The transfer will then be stopped at the next evaluation stage.- Specified by:
isCancelledin interfaceFileTransferProgress- Returns:
- boolean
-
progressed
public void progressed(long bytesSoFar) Description copied from interface:FileTransferProgressThe transfer has progressed- Specified by:
progressedin interfaceFileTransferProgress
-
completed
public void completed()Description copied from interface:FileTransferProgressThe transfer has completed.- Specified by:
completedin interfaceFileTransferProgress
-