Package velox.api.layer1.simplified
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 voidinitialize(java.lang.String alias, velox.api.layer1.data.InstrumentInfo info, Api api, InitialState initialState)Called before any other methoddefault voidstop()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:CustomModuleCalled before any other method- Specified by:
initializein interfaceCustomModule- Parameters:
alias- host instrument (the one where checkbox was checked)info- instrument info. Might be an instance of a subclass, providing some extra dataapi- object for interacting with BookmapinitialState- additional information partially replacing historical data, such as last trade price
-
stop
default void stop()Description copied from interface:CustomModuleCalled before unloading the module. If you have started any thread or allocated any resources - that's a good place to release those.- Specified by:
stopin interfaceCustomModule
-