public interface DownloadFuture extends Future<DownloadFuture>
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancels the authentication attempt and notifies all threads waiting for
this future.
|
java.io.File |
getFile()
Returns the file that has been downloaded on the local file system
|
java.lang.String |
getUrl()
Returns the original url
|
boolean |
isCanceled()
Returns
true if the download operation has been canceled by
cancel() method. |
addListener, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, isDone, removeListenerjava.lang.String getUrl()
java.io.File getFile()
throws java.io.IOException
null is the operation has
not completed yet or failedjava.io.IOExceptionboolean isCanceled()
true if the download operation has been canceled by
cancel() method.void cancel()
Copyright © 2017 Red Hat. All Rights Reserved.