Interface ResourceCleanerFactory
-
- All Known Implementing Classes:
DispatcherResourceCleanerFactory
public interface ResourceCleanerFactory
ResourceCleanerFactory
provides methods to createResourceCleaner
for local and global cleanup.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResourceCleaner
createGlobalResourceCleaner(ComponentMainThreadExecutor mainThreadExecutor)
CreatesResourceCleaner
that initiatesGloballyCleanableResource.globalCleanupAsync(JobID, Executor)
calls.ResourceCleaner
createLocalResourceCleaner(ComponentMainThreadExecutor mainThreadExecutor)
CreatesResourceCleaner
that initiatesLocallyCleanableResource.localCleanupAsync(JobID, Executor)
calls.
-
-
-
Method Detail
-
createLocalResourceCleaner
ResourceCleaner createLocalResourceCleaner(ComponentMainThreadExecutor mainThreadExecutor)
CreatesResourceCleaner
that initiatesLocallyCleanableResource.localCleanupAsync(JobID, Executor)
calls.- Parameters:
mainThreadExecutor
- Used for validating that theLocallyCleanableResource.localCleanupAsync(JobID, Executor)
is called from the main thread.
-
createGlobalResourceCleaner
ResourceCleaner createGlobalResourceCleaner(ComponentMainThreadExecutor mainThreadExecutor)
CreatesResourceCleaner
that initiatesGloballyCleanableResource.globalCleanupAsync(JobID, Executor)
calls.- Parameters:
mainThreadExecutor
- Used for validating that theGloballyCleanableResource.globalCleanupAsync(JobID, Executor)
is called from the main thread.
-
-