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 TypeMethodDescriptionvoid
begin()
boolean
void
Add a new task to the queue.void
setFinalTask
(Runnable finalTask) void
setTotalTasks
(int totalTasks) void
shutdown()
-
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
-