Package velox.api.layer1.messages
Class Layer1ApiRequestCurrentTimeEvents
java.lang.Object
velox.api.layer1.messages.Layer1ApiRequestCurrentTimeEvents
Providers time will be sent using CurrentTimeUserMessage at least as often as specified by interval
There is one exception: if system was in sleep mode or system time was changed while bookmap was working, some events might be skipped, and
event with
CurrentTimeUserMessage.isEventsSkipped = true flag will be sent-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final Layer1ApiRequestCurrentTimeEventsThis message is always used by core forCurrentTimeUserMessage.final longbooleanstatic final longfinal long -
Constructor Summary
ConstructorsConstructorDescriptionLayer1ApiRequestCurrentTimeEvents(boolean isAdd, long startTimeNs, long intervalNs) -
Method Summary
-
Field Details
-
BOOKMAP_INTERVAL_NS
public static final long BOOKMAP_INTERVAL_NS -
BOOKMAP_USER_MESSAGE
This message is always used by core forCurrentTimeUserMessage. -
MIN_INTERVAL_NS
public static final long MIN_INTERVAL_NS -
startTimeNs
public final long startTimeNs -
intervalNs
public final long intervalNs -
isAdd
public boolean isAdd
-
-
Constructor Details
-
Layer1ApiRequestCurrentTimeEvents
public Layer1ApiRequestCurrentTimeEvents(boolean isAdd, long startTimeNs, long intervalNs) - Parameters:
isAdd- true if message wants to start receiving current time messages, false if to stopstartTimeNs- time of first message sent in UTC nanosecondsintervalNs- in nanoseconds, at least 1 time message will be sent in every interval
0 if you only want one message to be sent (can't be less thanMIN_INTERVAL_NS)
-
-
Method Details