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.
|
File |
getFile()
Returns the file that has been downloaded on the local file system
|
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, removeListener
String getUrl()
File getFile() throws IOException
null
is the operation has
not completed yet or failedIOException
boolean isCanceled()
true
if the download operation has been canceled by
cancel()
method.void cancel()
Copyright © 2011–2014 Red Hat. All rights reserved.