Version 2.0.0-SNAPSHOT: Updated to use SQLLite with versioning. Needed a recode of the database system to allow for future updates.

This commit is contained in:
2025-02-01 10:45:53 -05:00
parent 353b7dad78
commit 069142a06b
28 changed files with 624 additions and 1400 deletions
@@ -18,10 +18,13 @@ import java.util.function.Consumer;
import java.util.logging.Level;
public abstract class VPNExecutor {
public static ScheduledExecutorService threadExecutor = Executors.newScheduledThreadPool(2);
@Getter
private final ScheduledExecutorService threadExecutor = Executors.newScheduledThreadPool(2);
@Getter
private final Set<UUID> whitelisted = Collections.synchronizedSet(new HashSet<>());
@Getter
private final Set<String> whitelistedIps = Collections.synchronizedSet(new HashSet<>());
@@ -32,7 +35,9 @@ public abstract class VPNExecutor {
public abstract void registerListeners();
public abstract void shutdown();
public void shutdown() {
threadExecutor.shutdown();
}
public abstract void log(Level level, String log, Object... objects);