20: Prepare background refresher thread
This commit is contained in:
+11
-1
@@ -14,8 +14,18 @@ public final class JupiterPerpsEntryPriceVariableRefreshWatcher {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void start() {
|
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(
|
System.out.println(
|
||||||
"Jupiter Perps entry price variable refresh watcher configured for directory: "
|
"Jupiter Perps entry price variable refresh watcher started for directory: "
|
||||||
+ confDirectory
|
+ confDirectory
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user