Package org.duracloud.mill.workman
Class TaskWorkerFactoryImpl
java.lang.Object
org.duracloud.mill.workman.TaskWorkerFactoryImpl
- All Implemented Interfaces:
TaskWorkerFactory
- Author:
- Daniel Bernstein
-
Constructor Summary
ConstructorsConstructorDescriptionTaskWorkerFactoryImpl(TaskProcessorFactory factory, org.duracloud.common.queue.TaskQueue deadLetterQueue) -
Method Summary
-
Constructor Details
-
TaskWorkerFactoryImpl
public TaskWorkerFactoryImpl(TaskProcessorFactory factory, org.duracloud.common.queue.TaskQueue deadLetterQueue)
-
-
Method Details
-
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
-