summaryrefslogtreecommitdiff
path: root/src/main/java/com/keuin/kbackupfabric/autobackup/PlayerActivityTracker.java
blob: ef2b85e5d455062d85db0ad728d6770640b786b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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();
}