Package velox.api.layer1.dynamichistory
Class Layer1ApiDynamicHistoryListener.LightweightHistoryInfo<T extends com.bookmap.api.Aggregation,E extends DynamicHistoryEvent>
java.lang.Object
velox.api.layer1.dynamichistory.Layer1ApiDynamicHistoryListener.DynamicHistoryInfo<T,E>
velox.api.layer1.dynamichistory.Layer1ApiDynamicHistoryListener.LightweightHistoryInfo<T,E>
- Enclosing interface:
Layer1ApiDynamicHistoryListener
public abstract static non-sealed class Layer1ApiDynamicHistoryListener.LightweightHistoryInfo<T extends com.bookmap.api.Aggregation,E extends DynamicHistoryEvent>
extends Layer1ApiDynamicHistoryListener.DynamicHistoryInfo<T,E>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertAggregation(long timeFrom, long timeTo, T aggregation) Deprecated.convertAggregation(Layer1ApiDynamicHistoryListener.BlockContext context, T aggregation) Converts a single historical block aggregation into a Bookmap event.abstract com.bookmap.api.treestructure.TreeInfo<T, ? extends com.bookmap.api.LightweightAggregateable<T>> Methods inherited from class velox.api.layer1.dynamichistory.Layer1ApiDynamicHistoryListener.DynamicHistoryInfo
getAggregationClass, getDataSource
-
Constructor Details
-
LightweightHistoryInfo
public LightweightHistoryInfo()
-
-
Method Details
-
getTreeInfo
public abstract com.bookmap.api.treestructure.TreeInfo<T,? extends com.bookmap.api.LightweightAggregateable<T>> getTreeInfo()- Specified by:
getTreeInfoin classLayer1ApiDynamicHistoryListener.DynamicHistoryInfo<T extends com.bookmap.api.Aggregation,E extends DynamicHistoryEvent>
-
convertAggregation
Converts a single historical block aggregation into a Bookmap event.Override this method. The default implementation only exists to keep add-ons written against
convertAggregation(long, long, Aggregation)working, and delegates to it.- Parameters:
context- the block's window on the chart's time axis, and the data delay that was applied to it (seeLayer1ApiDynamicHistoryListener.BlockContext)aggregation- the block's aggregation to convert- Returns:
- the event for this block; its
timeFrom/timeToshould be the context's window
-
convertAggregation
Deprecated.overrideconvertAggregation(BlockContext, Aggregation)instead: it also tells the add-on by how much the window was shifted for a delayed instrument. This method is only ever called through the default implementation of the new one; an add-on that overrides neither gets anUnsupportedOperationExceptionfrom here.Converts a single historical block aggregation into a Bookmap event.- Parameters:
timeFrom- start of the block's time window, in nanoseconds (exclusive)timeTo- end of the block's time window, in nanoseconds (inclusive) - the window is(timeFrom, timeTo], seeDynamicHistoryEventaggregation- the block's aggregation to convert- Returns:
- the event for this block; its
timeFrom/timeToshould be the given window
-
convertAggregation(BlockContext, Aggregation)instead: it also tells the add-on by how much the window was shifted for a delayed instrument.