Class ExpiryCleanupScheduler<T>
java.lang.Object
com.societegenerale.failover.scheduler.ExpiryCleanupScheduler<T>
- Type Parameters:
T- the payload type of the failover handler
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()Removes expired failover entries asynchronously on the configured cron schedule.
-
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.
-