Package org.duracloud.mill.workman
Class TaskWorkerFactoryImpl
- java.lang.Object
-
- org.duracloud.mill.workman.TaskWorkerFactoryImpl
-
- All Implemented Interfaces:
TaskWorkerFactory
public class TaskWorkerFactoryImpl extends Object implements TaskWorkerFactory
- Author:
- Daniel Bernstein
-
-
Constructor Summary
Constructors Constructor Description TaskWorkerFactoryImpl(TaskProcessorFactory factory, org.duracloud.common.queue.TaskQueue deadLetterQueue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TaskWorkerImplcreate(org.duracloud.common.queue.task.Task task, org.duracloud.common.queue.TaskQueue queue)Creates a task worker for the specified task.voiddestroy()Handles the destruction of the factory
-
-
-
Constructor Detail
-
TaskWorkerFactoryImpl
public TaskWorkerFactoryImpl(TaskProcessorFactory factory, org.duracloud.common.queue.TaskQueue deadLetterQueue)
-
-
Method Detail
-
create
public TaskWorkerImpl create(org.duracloud.common.queue.task.Task task, org.duracloud.common.queue.TaskQueue queue)
Description copied from interface:TaskWorkerFactoryCreates a task worker for the specified task.- Specified by:
createin interfaceTaskWorkerFactory- Returns:
-
destroy
public void destroy()
Description copied from interface:TaskWorkerFactoryHandles the destruction of the factory- Specified by:
destroyin interfaceTaskWorkerFactory
-
-