20: Add watcher wire-up
This commit is contained in:
@@ -48,6 +48,14 @@ public final class JupiterPerpsAlarmImpl {
|
|||||||
new JupiterPerpsEntryPriceVariableRefresher(alarmConfiguration.variables(), jupiterPerpsService);
|
new JupiterPerpsEntryPriceVariableRefresher(alarmConfiguration.variables(), jupiterPerpsService);
|
||||||
entryPriceVariableRefresher.refresh();
|
entryPriceVariableRefresher.refresh();
|
||||||
|
|
||||||
|
JupiterPerpsEntryPriceVariableRefreshWatcher entryPriceVariableRefreshWatcher =
|
||||||
|
new JupiterPerpsEntryPriceVariableRefreshWatcher(
|
||||||
|
config.alarmConfiguration().getParent(),
|
||||||
|
entryPriceVariableRefresher
|
||||||
|
);
|
||||||
|
|
||||||
|
entryPriceVariableRefreshWatcher.start();
|
||||||
|
|
||||||
List<AlarmAction> actions = new ArrayList<>();
|
List<AlarmAction> actions = new ArrayList<>();
|
||||||
actions.add(new ConsoleAlarmAction());
|
actions.add(new ConsoleAlarmAction());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user