Class RunModeHelper

java.lang.Object
velox.api.layer1.common.RunModeHelper

public class RunModeHelper extends Object
This class can be used to retrieve Bookmap Run Mode
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Boolean
    This flag indicates that Bookmap gets the data from the provider, it still can be delayed or replayed by the provider.
    static Boolean
    This flag indicates that all the trading events will be passed to provider, it still can be simulated on provider side.
    static boolean
     
    static void
    setRunModeOnce(boolean isLive, boolean isRealTrading)
    Called by Bookmap code once to set Run Mode.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RunModeHelper

      public RunModeHelper()
  • Method Details

    • setRunModeOnce

      public static void setRunModeOnce(boolean isLive, boolean isRealTrading)
      Called by Bookmap code once to set Run Mode.
    • isSet

      public static boolean isSet()
      Returns:
      true if the Run Mode is selected
    • isLive

      public static Boolean isLive()
      This flag indicates that Bookmap gets the data from the provider, it still can be delayed or replayed by the provider. Otherwise, the data is replayed by Bookmap.
      Returns:
      true if the data live (by provider)
    • isRealTrading

      public static Boolean isRealTrading()
      This flag indicates that all the trading events will be passed to provider, it still can be simulated on provider side. Otherwise, the trading is simulated by Bookmap.
      Returns:
      true if the trading is real (by provider)