Layer1ApiRequestCurrentTimeEvents
Package: velox.api.layer1.messages
Type: Class
Inheritance: java.lang.Object → Layer1ApiRequestCurrentTimeEvents
Description​
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.
Fields​
BOOKMAP_INTERVAL_NS​
public static final long BOOKMAP_INTERVAL_NS
BOOKMAP_USER_MESSAGE​
public static final Layer1ApiRequestCurrentTimeEvents BOOKMAP_USER_MESSAGE
This message is always used by core for CurrentTimeUserMessage.
MIN_INTERVAL_NS​
public static final long MIN_INTERVAL_NS
startTimeNs​
public final long startTimeNs
intervalNs​
public final long intervalNs
isAdd​
public boolean isAdd
Constructors​
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)
Methods​
getIntervalNs​
public long getIntervalNs()
setAdd​
public void setAdd(boolean isAdd)
Parameters:
isAdd- True if message wants to start receiving current time messages, false if to stop
toString​
public String toString()
Overrides: toString in class Object