|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Task
Wrapper object used by the WorkerThread
| Method Summary | |
|---|---|
void |
doTask()
Execute the task. |
void |
execute()
Execute this task by using the associated ExecutorService. |
Connection |
getConnection()
|
ExecutorService |
getThreadPool()
Return the thread pool used by this object. |
void |
recycle()
Recycle this task. |
void |
setConnection(Connection connection)
|
void |
setThreadPool(ExecutorService threadPool)
Set the thread pool on which Worker Threads will synchronize. |
| Methods inherited from interface java.lang.Runnable |
|---|
run |
| Methods inherited from interface java.util.concurrent.Callable |
|---|
call |
| Method Detail |
|---|
void doTask()
throws IOException
IOExceptionvoid execute()
ExecutorService.
If the ExecutorService is null, the task's doTask()
method will be invoked.
Connection getConnection()
void setConnection(Connection connection)
void recycle()
void setThreadPool(ExecutorService threadPool)
ExecutorService getThreadPool()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||