diff options
author | Keuin <[email protected]> | 2021-02-15 17:52:53 +0800 |
---|---|---|
committer | Keuin <[email protected]> | 2021-02-15 17:52:53 +0800 |
commit | 6d6f0b486ac42b6bd69ddb8862ee3af7b819f3a7 (patch) | |
tree | ce01c3a18b7e90af6204ff0db90a606eade81778 /src/main/java/com/keuin/kbackupfabric/autobackup/PlayerActivityTracker.java | |
parent | 68b102c763b0d0b21fb71575f1238d3cc879f959 (diff) |
Add tests.
Implementing auto backup and configuration (not finished)
Diffstat (limited to 'src/main/java/com/keuin/kbackupfabric/autobackup/PlayerActivityTracker.java')
-rw-r--r-- | src/main/java/com/keuin/kbackupfabric/autobackup/PlayerActivityTracker.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/java/com/keuin/kbackupfabric/autobackup/PlayerActivityTracker.java b/src/main/java/com/keuin/kbackupfabric/autobackup/PlayerActivityTracker.java new file mode 100644 index 0000000..ef2b85e --- /dev/null +++ b/src/main/java/com/keuin/kbackupfabric/autobackup/PlayerActivityTracker.java @@ -0,0 +1,15 @@ +package com.keuin.kbackupfabric.autobackup; + +public interface PlayerActivityTracker { + /** + * Update the checkpoint, return accumulated result. + * + * @return if there is at least one player logged in since last checkpoint. + */ + boolean getCheckpoint(); + + /** + * Mark dirty. In the next checkpoint, the backup will be performed. + */ + void setCheckpoint(); +} |