Interface LocallyCleanableResource

    • Method Detail

      • localCleanupAsync

        CompletableFuture<Void> localCleanupAsync​(JobID jobId,
                                                  Executor cleanupExecutor)
        localCleanupAsync is expected to be called from the main thread. Heavy IO tasks should be outsourced into the passed cleanupExecutor. Thread-safety must be ensured.
        Parameters:
        jobId - The JobID of the job for which the local data should be cleaned up.
        cleanupExecutor - The fallback executor for IO-heavy operations.
        Returns:
        The cleanup result future.