From 5e5f8ebd51c0b460fb5a6870faa0b24386c34dce8584b445b865a047e31db2e0 Mon Sep 17 00:00:00 2001 From: Minimons Date: Sun, 28 Jun 2026 18:19:20 +0200 Subject: [PATCH] 20: Prepare background refresher thread --- ...upiterPerpsEntryPriceVariableRefreshWatcher.tjava | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/main/tjava/com/r35157/jupiterperpsalarm/impl/ref/JupiterPerpsEntryPriceVariableRefreshWatcher.tjava b/src/main/tjava/com/r35157/jupiterperpsalarm/impl/ref/JupiterPerpsEntryPriceVariableRefreshWatcher.tjava index 5549852..8e5e0a5 100644 --- a/src/main/tjava/com/r35157/jupiterperpsalarm/impl/ref/JupiterPerpsEntryPriceVariableRefreshWatcher.tjava +++ b/src/main/tjava/com/r35157/jupiterperpsalarm/impl/ref/JupiterPerpsEntryPriceVariableRefreshWatcher.tjava @@ -14,8 +14,18 @@ public final class JupiterPerpsEntryPriceVariableRefreshWatcher { } public void start() { + Thread thread = new Thread( + this::run, + "jupiter-perps-entry-price-variable-refresh-watcher" + ); + + thread.setDaemon(true); + thread.start(); + } + + private void run() { System.out.println( - "Jupiter Perps entry price variable refresh watcher configured for directory: " + "Jupiter Perps entry price variable refresh watcher started for directory: " + confDirectory ); }