20: Add new JupiterPerpsEntryPriceVariableRefreshWatcher class
This commit is contained in:
+28
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user