Class PhonWorkerGroup
java.lang.Object
ca.phon.worker.PhonWorkerGroup
-
Constructor Summary
ConstructorsConstructorDescriptionPhonWorkerGroup(int taskWindow) Create a new task manager with the specified number of concurrent tasks. -
Method Summary
Modifier and TypeMethodDescriptionvoidbegin()booleanvoidAdd a new task to the queue.voidsetFinalTask(Runnable finalTask) voidsetTotalTasks(int totalTasks) voidshutdown()
-
Constructor Details
-
PhonWorkerGroup
public PhonWorkerGroup(int taskWindow) Create a new task manager with the specified number of concurrent tasks.- Parameters:
taskWindow-
-
-
Method Details
-
queueTask
Add a new task to the queue. -
begin
public void begin() -
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
getTaskList
-
getThreads
-
setTotalTasks
public void setTotalTasks(int totalTasks) -
setFinalTask
-