Class DynamicHistoryEndTimeMessage

java.lang.Object
velox.api.layer1.messages.DynamicHistoryEndTimeMessage
All Implemented Interfaces:
Layer1ApiStrategiesEchoMessagesLayer.StrategyEchoMessageFromGui, velox.api.layer1.messages.Layer1ApiIgnorableUpwardMessage

public class DynamicHistoryEndTimeMessage extends Object implements Layer1ApiStrategiesEchoMessagesLayer.StrategyEchoMessageFromGui
Sent to Layer1ApiAdminListener.onUserMessage(Object) for addons that use dynamic history (implement Layer1ApiDynamicHistoryListener).

Carries the value of dynamicHistoryEndNs - the boundary between the dynamic history interval and normal (client) data. time0 <= dynamicHistoryEndNs, where time0 is the absolute start of history visible on chart.

Sent once when the add-on is set up, and again whenever the value changes.

  • Field Details

    • alias

      public final String alias
      alias to which instrument this message is related
    • dynamicHistoryEndNs

      public final long dynamicHistoryEndNs
      End of the dynamic history interval (nanoseconds). Data in [time0, dynamicHistoryEndNs) comes from dynamic history; data from dynamicHistoryEndNs onward is old history + live.
  • Constructor Details

    • DynamicHistoryEndTimeMessage

      public DynamicHistoryEndTimeMessage(String alias, long dynamicHistoryEndNs)
  • Method Details