Search in sources :

Example 6 with CallbackMessage

use of com.birbit.android.jobqueue.messaging.message.CallbackMessage in project android-priority-jobqueue by yigit.

the class CallbackManager method notifyAfterRun.

public void notifyAfterRun(@NonNull Job job, int result) {
    if (!hasAnyCallbacks()) {
        return;
    }
    CallbackMessage callback = factory.obtain(CallbackMessage.class);
    callback.set(job, CallbackMessage.ON_AFTER_RUN, result);
    messageQueue.post(callback);
}
Also used : CallbackMessage(com.birbit.android.jobqueue.messaging.message.CallbackMessage)

Aggregations

CallbackMessage (com.birbit.android.jobqueue.messaging.message.CallbackMessage)6 Message (com.birbit.android.jobqueue.messaging.Message)1 MessageQueueConsumer (com.birbit.android.jobqueue.messaging.MessageQueueConsumer)1 CancelResultMessage (com.birbit.android.jobqueue.messaging.message.CancelResultMessage)1 CommandMessage (com.birbit.android.jobqueue.messaging.message.CommandMessage)1 PublicQueryMessage (com.birbit.android.jobqueue.messaging.message.PublicQueryMessage)1