Class CotaniCleanups
java.lang.Object
com.cotani.cleanup.CotaniCleanups
Factories for the
cotani-cleanup module.-
Method Summary
Modifier and TypeMethodDescriptionstatic CleanupServicefromExecutor(CleanupExecutor executor, com.cotani.event.api.EventBus eventBus) Creates a service over a caller-owned Paper or test executor.static CleanupServicefromExecutor(CleanupExecutor executor, com.cotani.event.api.EventBus eventBus, CleanupServiceOptions options) Creates a service over an executor with explicit operational limits.static CleanupServicefromExecutor(CleanupExecutor executor, com.cotani.event.api.EventBus eventBus, CleanupServiceOptions options, Clock clock) Creates a service with a test clock.static CleanupServiceinMemory(com.cotani.event.api.EventBus eventBus) Creates a deterministic in-memory service for tests and dry-run tooling.static CleanupServicepaper(com.cotani.task.api.PaperTaskScheduler scheduler, com.cotani.event.api.EventBus eventBus) Creates the standard Paper/Folia adapter over the caller-owned scheduler.static CleanupServicepaper(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.static PaperCleanupSchedulerscheduler(com.cotani.task.api.PaperTaskScheduler scheduler, CleanupService cleanupService) Creates a recurring scheduler facade over an existing cleanup service.
-
Method Details
-
inMemory
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.
-