Class ExpiryCleanupScheduler<T>

java.lang.Object
com.societegenerale.failover.scheduler.ExpiryCleanupScheduler<T>
Type Parameters:
T - the payload type of the failover handler

public class ExpiryCleanupScheduler<T> extends Object
Spring scheduler that periodically removes expired entries from the failover store via FailoverHandler.clean(). Runs on the cron schedule configured by failover.scheduler.cleanup-cron (default: hourly).
Author:
Anand Manissery
  • Constructor Details

    • ExpiryCleanupScheduler

      public ExpiryCleanupScheduler()
  • Method Details

    • cleanup

      @Async @Scheduled(cron="${failover.scheduler.cleanup-cron:0 0 * * * *}") public void cleanup()
      Removes expired failover entries asynchronously on the configured cron schedule.