Class BatchFileCleanupTaskHandler

java.lang.Object
org.apache.polaris.service.task.FileCleanupTaskHandler
org.apache.polaris.service.task.BatchFileCleanupTaskHandler
All Implemented Interfaces:
TaskHandler

public class BatchFileCleanupTaskHandler extends FileCleanupTaskHandler
BatchFileCleanupTaskHandler responsible for batch file cleanup by processing multiple file deletions in a single task handler. Valid files are deleted asynchronously with retries for transient errors, while missing files are logged and skipped.
  • Constructor Details

  • Method Details

    • canHandleTask

      public boolean canHandleTask(org.apache.polaris.core.entity.TaskEntity task)
      Specified by:
      canHandleTask in interface TaskHandler
      Specified by:
      canHandleTask in class FileCleanupTaskHandler
    • handleTask

      public void handleTask(org.apache.polaris.core.entity.TaskEntity task, org.apache.polaris.core.context.CallContext callContext)
      Description copied from class: FileCleanupTaskHandler
      Handles the provided task. A normal return indicates success and the task entity will be dropped; throwing indicates failure and triggers the task retry path.
      Specified by:
      handleTask in interface TaskHandler
      Specified by:
      handleTask in class FileCleanupTaskHandler