|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
---|
void creation(java.lang.Thread t) throws java.io.IOException
t
- the thread being associated.
java.io.IOException
void runTask(Job<T> job) throws java.lang.Exception
job
- the job that should be executed on the current thread.
java.lang.Exception
void destruction(java.lang.Thread t) throws java.io.IOException, java.lang.InterruptedException
t
- the removed thread.
java.io.IOException
java.lang.InterruptedException
void shutdown()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |