org.dasein.cloud
Class AsynchronousTask<T>
java.lang.Object
org.dasein.cloud.AsynchronousTask<T>
- Direct Known Subclasses:
- FileTransfer
public class AsynchronousTask<T>
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AsynchronousTask
public AsynchronousTask()
complete
public void complete(Throwable withError)
completeWithResult
public void completeWithResult(T result)
isComplete
public boolean isComplete()
getDuration
public long getDuration()
getPercentComplete
public double getPercentComplete()
setPercentComplete
public void setPercentComplete(double percentComplete)
getEndTime
public long getEndTime()
getResult
public T getResult()
getStartTime
public long getStartTime()
setStartTime
public void setStartTime(long startTime)
getTaskError
public Throwable getTaskError()
Copyright © 2009 enStratus Networks LLC – Available under the terms of the Artistic License 2.0.