Set default timer duration to 1 minute for testing.

This commit is contained in:
akwizgran
2021-02-25 15:58:28 +00:00
committed by Torsten Grote
parent e3c5497283
commit 3ecd1c62b8
2 changed files with 10 additions and 2 deletions

View File

@@ -6,6 +6,8 @@ import org.briarproject.bramble.api.db.Transaction;
import org.briarproject.bramble.api.nullsafety.NotNullByDefault;
import org.briarproject.bramble.api.sync.ClientId;
import static java.util.concurrent.TimeUnit.MINUTES;
@NotNullByDefault
public interface AutoDeleteManager {
@@ -24,6 +26,12 @@ public interface AutoDeleteManager {
*/
int MINOR_VERSION = 0;
/**
* The default auto-delete timer duration.
* TODO: Change this to one week before release
*/
long DEFAULT_TIMER_DURATION = MINUTES.toMillis(1);
/**
* Returns the auto-delete timer duration for the given contact. Use
* {@link #getAutoDeleteTimer(Transaction, ContactId, long)} if the timer