public class FileTransferFuture extends Object
FileTransferFuture which can be
used to find out if the transfer is complete. It can also be used cancel
associated transfer request.
The class implementation is thread-safe.
| Constructor and Description |
|---|
FileTransferFuture() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel()
Cancel the associated file transfer.
|
void |
completed()
Mark the file transfer task completed
|
void |
failed()
Mark the file transfer task failed
|
void |
inProgress()
mark the file transfer is started.
|
boolean |
isComplete()
Check if the associated file transfer is complete
|
boolean |
isError()
Check if there is any error occured for this file transfer
|
public void inProgress()
public boolean isComplete()
public void completed()
public void failed()
public boolean isError()
public boolean cancel()
Copyright © 2019. All rights reserved.