Known Direct Subclasses |
Base class for Priority
based worker
Can also be used as delegate for non extensible existing classes, such as AsyncTask
Public Constructor Summary
Public Method Summary
synchronized void |
addDependency(Task task)
|
boolean |
areDependenciesMet()
Returns true when the dependencies have been met
|
int |
compareTo(Object other)
|
synchronized Collection<Task> |
getDependencies()
fulfilled before the Dependency instance.
|
Throwable |
getError()
|
Priority | |
boolean | |
static boolean |
isProperDelegate(Object object)
|
void |
setError(Throwable throwable)
|
synchronized void |
setFinished(boolean finished)
Marks Task as finished
|
Inherited Method Summary
Object |
clone()
|
boolean |
equals(Object arg0)
|
void |
finalize()
|
final Class<?> |
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String |
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
abstract void | |
abstract boolean |
areDependenciesMet()
Returns true when the dependencies have been met
|
abstract Collection<Task> |
getDependencies()
fulfilled before the Dependency instance.
|
abstract Priority |
abstract Throwable |
getError()
|
abstract boolean | |
abstract void |
setError(Throwable throwable)
|
abstract void |
setFinished(boolean finished)
Marks Task as finished
|
abstract int |
compareTo(T arg0)
|
Public Constructors
public PriorityTask ()
Public Methods
public boolean areDependenciesMet ()
Returns true when the dependencies have been met
public int compareTo (Object other)
Parameters
other |
public synchronized Collection<Task> getDependencies ()
fulfilled before the Dependency instance.
Returns
- Collection of T to be fulfilled before the Dependency instance.
public Throwable getError ()
public boolean isFinished ()
public static boolean isProperDelegate (Object object)
Parameters
object |
public void setError (Throwable throwable)
Parameters
throwable |
public synchronized void setFinished (boolean finished)
Marks Task as finished
Parameters
finished |