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 TypeMethodDescriptionvoid
join()
Wait end of workspace batch this method may be called only oncevoid
run()
void
start()
Start the workspace batch This method should be called only oncevoid
transfer
(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:
ProcessingException
WorkerspaceQueueException
-
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
-