Class AsyncResourceCleaner


  • public class AsyncResourceCleaner
    extends java.lang.Object
    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 Detail

      • AsyncResourceCleaner

        public AsyncResourceCleaner​(ServerConfiguration serverConfiguration)
      • AsyncResourceCleaner

        public AsyncResourceCleaner​(ServerConfiguration serverConfiguration,
                                    StorageClientFactory storageClientFactory,
                                    java.util.concurrent.ScheduledExecutorService scheduledExecutorService)
    • Method Detail

      • markAsyncResourcesForRemoval

        public void markAsyncResourcesForRemoval​(java.util.Map<java.lang.String,​AccessRequestContext> asyncResources)
        Add async resources to clear
        Parameters:
        asyncResources - the async resources by request id map