Class CotaniCleanups

java.lang.Object
com.cotani.cleanup.CotaniCleanups

public final class CotaniCleanups extends Object
Factories for the cotani-cleanup module.
  • Method Details

    • inMemory

      public static CleanupService inMemory(com.cotani.event.api.EventBus eventBus)
      Creates a deterministic in-memory service for tests and dry-run tooling.
    • paper

      public static CleanupService paper(com.cotani.task.api.PaperTaskScheduler scheduler, com.cotani.event.api.EventBus eventBus)
      Creates the standard Paper/Folia adapter over the caller-owned scheduler.
    • paper

      public static CleanupService paper(com.cotani.task.api.PaperTaskScheduler scheduler, com.cotani.event.api.EventBus eventBus, CleanupProtection protection)
      Creates the Paper/Folia adapter with immutable snapshot-based protection rules.
    • scheduler

      public static PaperCleanupScheduler scheduler(com.cotani.task.api.PaperTaskScheduler scheduler, CleanupService cleanupService)
      Creates a recurring scheduler facade over an existing cleanup service.
    • fromExecutor

      public static CleanupService fromExecutor(CleanupExecutor executor, com.cotani.event.api.EventBus eventBus)
      Creates a service over a caller-owned Paper or test executor.
    • fromExecutor

      public static CleanupService fromExecutor(CleanupExecutor executor, com.cotani.event.api.EventBus eventBus, CleanupServiceOptions options)
      Creates a service over an executor with explicit operational limits.
    • fromExecutor

      public static CleanupService fromExecutor(CleanupExecutor executor, com.cotani.event.api.EventBus eventBus, CleanupServiceOptions options, Clock clock)
      Creates a service with a test clock.