Simplified executors

This commit is contained in:
M66B
2023-01-13 17:38:41 +01:00
parent 3e6ed3cb04
commit 51f3f150d7
9 changed files with 26 additions and 28 deletions

View File

@@ -129,9 +129,9 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
private final MediatorState liveAccountNetworkState = new MediatorState();
private static final ExecutorService executorService =
Helper.getBackgroundExecutor(1, 1, 0, "sync");
Helper.getBackgroundExecutor(1, "sync");
private static final ExecutorService executorNotify =
Helper.getBackgroundExecutor(0, 1, 3, "notify");
Helper.getBackgroundExecutor(1, "notify");
private static final long BACKUP_DELAY = 30 * 1000L; // milliseconds
private static final long PURGE_DELAY = 30 * 1000L; // milliseconds