com.android.builder.tasks
Interface QueueThreadContext<T>


public interface QueueThreadContext<T>

Notification of queue events, creation, task running and destruction


Method Summary
 void creation(java.lang.Thread t)
          Notification of a new worker thread association with the queue
 void destruction(java.lang.Thread t)
          Notification of the removal of the passed thread as a queue worker thread.
 void runTask(Job<T> job)
          Notification of a scheduled task execution.
 void shutdown()
          Notification of the queue shutdown.
 

Method Detail

creation

void creation(java.lang.Thread t)
              throws java.io.IOException
Notification of a new worker thread association with the queue

Parameters:
t - the thread being associated.
Throws:
java.io.IOException

runTask

void runTask(Job<T> job)
             throws java.lang.Exception
Notification of a scheduled task execution.

Parameters:
job - the job that should be executed on the current thread.
Throws:
java.lang.Exception

destruction

void destruction(java.lang.Thread t)
                 throws java.io.IOException,
                        java.lang.InterruptedException
Notification of the removal of the passed thread as a queue worker thread.

Parameters:
t - the removed thread.
Throws:
java.io.IOException
java.lang.InterruptedException

shutdown

void shutdown()
Notification of the queue shutdown. All native resources must be released.