Go to console

PriorityAsyncTask

public abstract class PriorityAsyncTask extends AsyncTask<Params, Progress, Result>
implements Dependency<Task> PriorityProvider Task DelegateProvider

AsyncTask that provides priority for PriorityThreadPoolExecutor

Inherited Field Summary

Public Constructor Summary

Public Method Summary

void
boolean
areDependenciesMet()
Returns true when the dependencies have been met
int
compareTo(Object another)
final void
executeOnExecutor(ExecutorService exec, Params... params)
<T extends Dependency<Task> & PriorityProvider & Task> T
getDelegate()
Returns a delegate to be used when the parent class of the implementor can extend from a PriorityTask
Collection<Task>
getDependencies()
fulfilled before the Dependency instance.
Throwable
Priority
boolean
void
setError(Throwable throwable)
void
setFinished(boolean finished)
Marks Task as finished

Inherited Method Summary

Public Constructors

public PriorityAsyncTask ()

Public Methods

public void addDependency (Task task)

Adds a Dependency

Parameters
task
Throws
IllegalStateException if @{link Fabric} has not been initialized.

public boolean areDependenciesMet ()

Returns true when the dependencies have been met

public int compareTo (Object another)

Parameters
another

public final void executeOnExecutor (ExecutorService exec, Params... params)

Parameters
exec
params

public T getDelegate ()

Returns a delegate to be used when the parent class of the implementor can extend from a PriorityTask

public Collection<Task> getDependencies ()

fulfilled before the Dependency instance.

Returns
  • Collection of T to be fulfilled before the Dependency instance.

public Throwable getError ()

public Priority getPriority ()

public boolean isFinished ()

public void setError (Throwable throwable)

Parameters
throwable

public void setFinished (boolean finished)

Marks Task as finished

Parameters
finished