Package fr.gouv.vitam.worker.core.impl
Class AsyncWorkspaceTransfer
java.lang.Object
fr.gouv.vitam.worker.core.impl.AsyncWorkspaceTransfer
Send asynchronously files to the workspace
Manage double collection,
one for managing completable waitMonitor as batch
The scond collection is for WorkspaceQueue, information of files to be sent to the workspace
If an exception occurs when a completable waitMonitor try to execute a task, this exception will be saved and propagated when the method waitEndOfTransfer is called
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
startTransfer
(int queueSize) void
transfer
(WorkspaceQueue workspaceQueue) void
Wait end of transfer.
-
Constructor Details
-
AsyncWorkspaceTransfer
-
-
Method Details
-
transfer
- Throws:
WorkerspaceQueueException
-
startTransfer
- Throws:
WorkerspaceQueueException
-
waitEndOfTransfer
Wait end of transfer. All Completable waitMonitor should be completed- Throws:
WorkerspaceQueueException
-