Class AsyncResourceCleaner
java.lang.Object
fr.gouv.vitam.processing.distributor.core.AsyncResourceCleaner
Helper service that handles background cleanup of unused asynchronous resources from storage engine.
This service is used for all workflows that require async resource from tape offers.
-
Constructor Summary
ConstructorDescriptionAsyncResourceCleaner
(ServerConfiguration serverConfiguration) AsyncResourceCleaner
(ServerConfiguration serverConfiguration, StorageClientFactory storageClientFactory, ScheduledExecutorService scheduledExecutorService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
markAsyncResourcesForRemoval
(Map<String, AccessRequestContext> asyncResources) Add async resources to clear
-
Constructor Details
-
AsyncResourceCleaner
-
AsyncResourceCleaner
public AsyncResourceCleaner(ServerConfiguration serverConfiguration, StorageClientFactory storageClientFactory, ScheduledExecutorService scheduledExecutorService)
-
-
Method Details
-
markAsyncResourcesForRemoval
Add async resources to clear- Parameters:
asyncResources
- the async resources by request id map
-