Package velox.api.layer1.messages
Class Layer1ApiGetUiValueMessage<T extends Layer1ApiGetUiValueMessage.UiState>
java.lang.Object
velox.api.layer1.messages.Layer1ApiGetUiValueMessage<T>
- Type Parameters:
T- the type of the state snapshot delivered to the consumer callback
- All Implemented Interfaces:
Layer1ApiStrategiesEchoMessagesLayer.StrategyEchoMessageFromLayer
- Direct Known Subclasses:
Layer1ApiGetBracketsMessage,Layer1ApiGetCrossTradingRoundingMessage,Layer1ApiGetCrossTradingTargetMessage,Layer1ApiGetOcoMessage,Layer1ApiGetOrderDurationMessage,Layer1ApiGetOrderSizeMessage,Layer1ApiGetResetOrderSizeCheckboxMessage,Layer1ApiGetStopOrderDurationMessage,Layer1ApiGetStopOrderOffsetMessage,Layer1ApiGetStopOrderTypeMessage,Layer1ApiGetTrailingStopMessage
public abstract sealed class Layer1ApiGetUiValueMessage<T extends Layer1ApiGetUiValueMessage.UiState>
extends Object
implements Layer1ApiStrategiesEchoMessagesLayer.StrategyEchoMessageFromLayer
permits Layer1ApiGetBracketsMessage, Layer1ApiGetOcoMessage, Layer1ApiGetTrailingStopMessage, Layer1ApiGetOrderSizeMessage, Layer1ApiGetOrderDurationMessage, Layer1ApiGetStopOrderTypeMessage, Layer1ApiGetStopOrderOffsetMessage, Layer1ApiGetStopOrderDurationMessage, Layer1ApiGetResetOrderSizeCheckboxMessage, Layer1ApiGetCrossTradingTargetMessage, Layer1ApiGetCrossTradingRoundingMessage
Base type for the "get current value" messages that read a single control from the Trading Control Panel.
Send via
Send via
Layer1ApiAdminProvider.sendUserMessage(Object)
Each subclass targets one Trading Control Panel control and delivers its current value to the supplied
consumer as a Layer1ApiGetUiValueMessage.UiState snapshot.
Works only when the Trading Control Panel is enabled.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceMarker interface for the immutable state snapshots returned by theLayer1ApiGetUiValueMessagesubclasses. -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLayer1ApiGetUiValueMessage(String alias, Consumer<T> consumer) -
Method Summary
-
Field Details
-
alias
The instrument alias the request targets. -
consumer
Callback that will receive the current Trading Control Panel state.
-
-
Constructor Details
-
Layer1ApiGetUiValueMessage
- Parameters:
alias- the instrument aliasconsumer- callback that will receive the current Trading Control Panel state
-