Interface CustomModuleAdapter

All Superinterfaces:
CustomModule

public interface CustomModuleAdapter
extends CustomModule
An adapter for CustomModule with empty default method implementations
  • Method Summary

    Modifier and Type Method Description
    default void initialize​(java.lang.String alias, velox.api.layer1.data.InstrumentInfo info, Api api, InitialState initialState)
    Called before any other method
    default void stop()
    Called before unloading the module.
  • Method Details

    • initialize

      default void initialize​(java.lang.String alias, velox.api.layer1.data.InstrumentInfo info, Api api, InitialState initialState)
      Description copied from interface: CustomModule
      Called before any other method
      Specified by:
      initialize in interface CustomModule
      Parameters:
      alias - host instrument (the one where checkbox was checked)
      info - instrument info. Might be an instance of a subclass, providing some extra data
      api - object for interacting with Bookmap
      initialState - additional information partially replacing historical data, such as last trade price
    • stop

      default void stop()
      Description copied from interface: CustomModule
      Called before unloading the module. If you have started any thread or allocated any resources - that's a good place to release those.
      Specified by:
      stop in interface CustomModule