class JobExecutor extends Object
Constructor and Description |
---|
JobExecutor() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
cleanUpRoutine(LruCache<Integer,WeakReference<Job>> cache) |
Future<Job.Result> |
execute(Context context,
JobRequest request,
Job job,
Bundle transientExtras) |
SparseArray<Job.Result> |
getAllJobResults() |
Set<Job> |
getAllJobs() |
Set<Job> |
getAllJobsForTag(String tag) |
Job |
getJob(int jobId) |
boolean |
isRequestStarting(JobRequest request) |
(package private) void |
markJobAsFinished(Job job) |
void |
markJobRequestStarting(JobRequest request) |
public Future<Job.Result> execute(@NonNull Context context, @NonNull JobRequest request, @Nullable Job job, @NonNull Bundle transientExtras)
public Job getJob(int jobId)
public SparseArray<Job.Result> getAllJobResults()
public void markJobRequestStarting(@NonNull JobRequest request)
public boolean isRequestStarting(JobRequest request)
void markJobAsFinished(Job job)
void cleanUpRoutine(LruCache<Integer,WeakReference<Job>> cache)