Package 

Class TaskQueue


  • 
    public class TaskQueue
    
                        

    Manages priority- and dependency-driven execution of background tasks.

    The queue rejects re-adding tasks that are already scheduled or running — two tasks are considered equal if they are the same object, or share both TaskType and id. Subclasses control duplication semantics through the appropriate Task constructor; see com.appsflyer.internal.components.queue.tasks.UpdateRemoteControlTask for an example.

    Heavy resources (queue ThreadPoolExecutor, service executor, Timer, skip-lists) are created lazily on first use so constructing the queue / registering listeners on the main thread does not allocate threads or trigger Cleaner registration.