Package fr.gouv.vitam.worker.core.impl
Class WorkspaceBatchRunner
java.lang.Object
fr.gouv.vitam.worker.core.impl.WorkspaceBatchRunner
- All Implemented Interfaces:
Runnable
This task is responsible of sending files to the workspace
-
Constructor Summary
ConstructorsConstructorDescriptionWorkspaceBatchRunner(HandlerIO handlerAsyncIO, Executor executor, int queueSize) -
Method Summary
Modifier and TypeMethodDescriptionvoidjoin()Wait end of workspace batch this method may be called only oncevoidrun()voidstart()Start the workspace batch This method should be called only oncevoidtransfer(WorkspaceQueue workspaceQueue) Enqueue element to be transferred to the workspace
-
Constructor Details
-
WorkspaceBatchRunner
-
-
Method Details
-
run
public void run() -
transfer
Enqueue element to be transferred to the workspace- Parameters:
workspaceQueue-- Throws:
ProcessingExceptionWorkerspaceQueueException
-
start
Start the workspace batch This method should be called only once- Throws:
WorkerspaceQueueException
-
join
Wait end of workspace batch this method may be called only once- Throws:
WorkerspaceQueueException
-