Class WorkerExecutor
- java.lang.Object
-
- fr.gouv.vitam.processing.distributor.core.WorkerExecutor
-
- All Implemented Interfaces:
java.lang.Runnable
public class WorkerExecutor extends java.lang.Object implements java.lang.Runnablemanage one worker with n thread
-
-
Constructor Summary
Constructors Constructor Description WorkerExecutor(PriorityTaskQueue<java.lang.Runnable> queue, WorkerBean workerBean)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkerBeangetWorkerBean()voidrun()voidstop()send a message to notify all thread that the worker will be stop.
-
-
-
Constructor Detail
-
WorkerExecutor
public WorkerExecutor(PriorityTaskQueue<java.lang.Runnable> queue, WorkerBean workerBean)
-
-
Method Detail
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable
-
stop
public void stop()
send a message to notify all thread that the worker will be stop.
-
getWorkerBean
public WorkerBean getWorkerBean()
-
-