public class FileRecorderSink
Record raw vehicle messages to a file as JSON.
This data sink is a simple passthrough that records every raw vehicle
message as it arrives to a file on the device. It uses a heuristic to
detect different "trips" in the vehicle, and splits the recorded trace by
The heuristic is very simple: if we haven't received any new data in a while,
consider the previous trip to have ended. When activity resumes, start a new
Receive a data point with a name, a value and a event value.
The implementation of this method should not block, lest the vehicle data
source get behind in processing data from a source potentially external
to the system.