public interface ResourceCleanerFactory
ResourceCleanerFactory
provides methods to create ResourceCleaner
for local and
global cleanup.Modifier and Type | Method and Description |
---|---|
ResourceCleaner |
createGlobalResourceCleaner(ComponentMainThreadExecutor mainThreadExecutor)
Creates
ResourceCleaner that initiates GloballyCleanableResource.globalCleanupAsync(JobID, Executor) calls. |
ResourceCleaner |
createLocalResourceCleaner(ComponentMainThreadExecutor mainThreadExecutor)
Creates
ResourceCleaner that initiates LocallyCleanableResource.localCleanupAsync(JobID, Executor) calls. |
ResourceCleaner createLocalResourceCleaner(ComponentMainThreadExecutor mainThreadExecutor)
ResourceCleaner
that initiates LocallyCleanableResource.localCleanupAsync(JobID, Executor)
calls.mainThreadExecutor
- Used for validating that the LocallyCleanableResource.localCleanupAsync(JobID, Executor)
is called from the main
thread.ResourceCleaner createGlobalResourceCleaner(ComponentMainThreadExecutor mainThreadExecutor)
ResourceCleaner
that initiates GloballyCleanableResource.globalCleanupAsync(JobID, Executor)
calls.mainThreadExecutor
- Used for validating that the GloballyCleanableResource.globalCleanupAsync(JobID, Executor)
is called from the main
thread.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.