-
public interface QueueStatusListenerListener allows to check state of tasks in Queue.
All methods will be called in the background thread. This interface is internal and intended for debug purposes. Avoid blocking operations in the current thread
-
-
Method Summary
Modifier and Type Method Description abstract voidonTaskAdded(@NonNull() Task<out Object> task)Called when new task is added to the queue or failed task is added back to the queue for retry abstract voidonTaskStarted(@NonNull() Task<out Object> task)Called when task started execution on the queue executor abstract voidonTaskFinished(@NonNull() Task<out Object> task, @NonNull() QueueResult result)Called when task completed execution - successfully or not (moving back to pending state) abstract voidonTaskDropped(@NonNull() Task<out Object> task)Called when task is removed from queue because of reaching pendingTasksLimit in the queue -
-
Method Detail
-
onTaskAdded
@WorkerThread() abstract void onTaskAdded(@NonNull() Task<out Object> task)
Called when new task is added to the queue or failed task is added back to the queue for retry
-
onTaskStarted
@WorkerThread() abstract void onTaskStarted(@NonNull() Task<out Object> task)
Called when task started execution on the queue executor
-
onTaskFinished
@WorkerThread() abstract void onTaskFinished(@NonNull() Task<out Object> task, @NonNull() QueueResult result)
Called when task completed execution - successfully or not (moving back to pending state)
-
onTaskDropped
@WorkerThread() abstract void onTaskDropped(@NonNull() Task<out Object> task)
Called when task is removed from queue because of reaching pendingTasksLimit in the queue
-
-
-
-