Class HotBackupScheduler
java.lang.Object
com.loomcache.server.persistence.HotBackupScheduler
- All Implemented Interfaces:
AutoCloseable
Periodically triggers operator Hot Backup snapshots at a fixed delay.
The scheduler never overlaps runs; manual callers can also route through
triggerNow() to share the same concurrency guard and statistics.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic final record -
Constructor Summary
ConstructorsConstructorDescriptionHotBackupScheduler(String nodeId, long intervalSeconds, HotBackupScheduler.BackupAction backupAction) -
Method Summary
-
Constructor Details
-
HotBackupScheduler
public HotBackupScheduler(String nodeId, long intervalSeconds, HotBackupScheduler.BackupAction backupAction)
-
-
Method Details
-
start
public void start() -
triggerNow
- Throws:
IOException
-
getStats
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-