
com.path.android.jobqueue.nonPersistentQueue.JobSet Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of android-priority-jobqueue Show documentation
Show all versions of android-priority-jobqueue Show documentation
a Job Queue specifically written for Android to easily schedule jobs (tasks) that run in the background, improving UX and application stability.
package com.path.android.jobqueue.nonPersistentQueue;
import com.path.android.jobqueue.JobHolder;
import java.util.Collection;
/**
* An interface for Job Containers
* It is very similar to SortedSet
*/
public interface JobSet {
public JobHolder peek(Collection excludeGroupIds);
public JobHolder poll(Collection excludeGroupIds);
public JobHolder findById(long id);
public boolean offer(JobHolder holder);
public boolean remove(JobHolder holder);
public void clear();
public int size();
public CountWithGroupIdsResult countReadyJobs(long now, Collection excludeGroups);
public CountWithGroupIdsResult countReadyJobs(Collection excludeGroups);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy