From c1cbaf0c52363663550392a44f31a79bd59ecf1bc7c4eadcde2c98c0aa91752a Mon Sep 17 00:00:00 2001 From: Minimons Date: Sun, 28 Jun 2026 18:06:30 +0200 Subject: [PATCH] 20: Add new JupiterPerpsEntryPriceVariableRefreshWatcher class --- ...erpsEntryPriceVariableRefreshWatcher.tjava | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/main/tjava/com/r35157/jupiterperpsalarm/impl/ref/JupiterPerpsEntryPriceVariableRefreshWatcher.tjava diff --git a/src/main/tjava/com/r35157/jupiterperpsalarm/impl/ref/JupiterPerpsEntryPriceVariableRefreshWatcher.tjava b/src/main/tjava/com/r35157/jupiterperpsalarm/impl/ref/JupiterPerpsEntryPriceVariableRefreshWatcher.tjava new file mode 100644 index 0000000..5549852 --- /dev/null +++ b/src/main/tjava/com/r35157/jupiterperpsalarm/impl/ref/JupiterPerpsEntryPriceVariableRefreshWatcher.tjava @@ -0,0 +1,28 @@ +package com.r35157.jupiterperpsalarm.impl.ref; + +import java.nio.file.Path; +import java.util.Objects; + +public final class JupiterPerpsEntryPriceVariableRefreshWatcher { + + public JupiterPerpsEntryPriceVariableRefreshWatcher( + Path confDirectory, + JupiterPerpsEntryPriceVariableRefresher refresher + ) { + this.confDirectory = Objects.requireNonNull(confDirectory, "confDirectory"); + this.refresher = Objects.requireNonNull(refresher, "refresher"); + } + + public void start() { + System.out.println( + "Jupiter Perps entry price variable refresh watcher configured for directory: " + + confDirectory + ); + } + + private static final String REFRESH_TRIGGER_FILE_NAME = + "jupiter-perps-alarm-var.refresh"; + + private final Path confDirectory; + private final JupiterPerpsEntryPriceVariableRefresher refresher; +}