com.android.builder.tasks
Class Job<T>
java.lang.Object
com.android.builder.tasks.Job<T>
public class Job<T>
- extends java.lang.Object
Definition of a queued job. A job has a title, a task to execute, a latch to signal its
completion and a boolean result for success or failure.
Constructor Summary |
Job(java.lang.String jobTile,
Task<T> task)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Job
public Job(java.lang.String jobTile,
Task<T> task)
getJobTitle
public java.lang.String getJobTitle()
runTask
public void runTask(JobContext<T> jobContext)
throws java.io.IOException
- Throws:
java.io.IOException
finished
public void finished()
error
public void error()
await
public boolean await()
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object