com.birbit.android.jobqueue.Params Java Examples

The following examples show how to use com.birbit.android.jobqueue.Params. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SyncCommentJob.java    From OfflineSampleApp with Apache License 2.0 5 votes vote down vote up
public SyncCommentJob(Comment comment) {
    super(new Params(JobPriority.MID)
            .requireNetwork()
            .groupBy(TAG)
            .persist());
    this.comment = comment;
}
 
Example #2
Source File: FetchLocationByAddressJob.java    From priority-job-queue with MIT License 5 votes vote down vote up
public FetchLocationByAddressJob(String address) {
    super(new Params(JobConstants.PRIORITY_NORMAL)
            .requireNetwork()
            .singleInstanceBy(TAG)
            .addTags(TAG)
    );

    mAddress = address;
}
 
Example #3
Source File: BaseJob.java    From hipda with GNU General Public License v2.0 5 votes vote down vote up
public BaseJob(String sessionId, int priority) {
    super(new Params(priority)
            .setPersistent(false)
            .setRequiresNetwork(false)
            .addTags(sessionId));
    mSessionId = sessionId;
}
 
Example #4
Source File: GlideImageJob.java    From hipda with GNU General Public License v2.0 5 votes vote down vote up
public GlideImageJob(String url, int priority, String tag, boolean networkFetch) {
    super(new Params(priority)
            .setPersistent(false)
            .setRequiresNetwork(false)
            .addTags(tag));
    mRequestManager = Glide.with(HiApplication.getAppContext());
    mUrl = url;
    mNetworkFetch = networkFetch;
    mSessionId = tag;
}
 
Example #5
Source File: SipStack.java    From africastalking-android with MIT License 4 votes vote down vote up
public LogJob(String text) {
    super(new Params(0).delayInMs(500));
    this.text = text;
}
 
Example #6
Source File: AbstractQuery.java    From AndroidStarter with Apache License 2.0 4 votes vote down vote up
protected AbstractQuery(final Priority poPriority) {
    super(new Params(poPriority.value).requireNetwork());
}
 
Example #7
Source File: AbstractQuery.java    From AndroidStarter with Apache License 2.0 4 votes vote down vote up
protected AbstractQuery(final Priority poPriority, final boolean pbPersistent, final String psGroupId, final long plDelayMs) {
    super(new Params(poPriority.value).requireNetwork().setPersistent(pbPersistent).setGroupId(psGroupId).setDelayMs(plDelayMs));
}
 
Example #8
Source File: AbstractQuery.java    From AndroidStarterAlt with Apache License 2.0 4 votes vote down vote up
protected AbstractQuery(final Priority poPriority) {
    super(new Params(poPriority.value).requireNetwork());
}
 
Example #9
Source File: AbstractQuery.java    From AndroidStarterAlt with Apache License 2.0 4 votes vote down vote up
protected AbstractQuery(final Priority poPriority, final boolean pbPersistent, final String psGroupId, final long plDelayMs) {
    super(new Params(poPriority.value).requireNetwork().setPersistent(pbPersistent).setGroupId(psGroupId).setDelayMs(plDelayMs));
}
 
Example #10
Source File: SaveDrawingJob.java    From android-notepad with MIT License 4 votes vote down vote up
public SaveDrawingJob(SignaturePad signaturePad, int noteId){
	super(new Params(1));
	this.signaturePad = signaturePad;
	this.noteId = noteId;
}
 
Example #11
Source File: FetchRandomLatLngJob.java    From priority-job-queue with MIT License 4 votes vote down vote up
public FetchRandomLatLngJob(String groupId) {
    super(new Params(JobConstants.PRIORITY_HIGH)
            .groupBy(groupId)
    );
}
 
Example #12
Source File: FetchLocationByLatLngJob.java    From priority-job-queue with MIT License 4 votes vote down vote up
public FetchLocationByLatLngJob(String groupId) {
    super(new Params(JobConstants.PRIORITY_NORMAL)
            .setGroupId(groupId)
            .addTags(TAG)
    );
}
 
Example #13
Source File: BaseJob.java    From hipda with GNU General Public License v2.0 4 votes vote down vote up
protected BaseJob(Params params) {
    super(params);
}