Create metric
Explicitly shutdown the batching client.
Explicitly shutdown the batching client.
Specifically, this cancels internal timers, etc.
Note, internal timers, etc., will be created as daemons, so should not block normal terminations if this method is not called.
Simple batching of metrics for CAVE.
This class gathers raw metrics together, and sends to CAVE, as batches, in a timely fashion.
The approach in this class is to collect metrics into collections, and when full, or a timer (based on the age of the first metric in the collection) expires, that batch is sent to CAVE.
A minimal runtime impact is achieved by using a single Timer, and a single thread - the timer is used simply to schedule tasks to be executed on the thread, with the thread being used for all the work (interacting with CAVE, etc.).
Note, each instance of this class builds its own batches, and delivers to CAVE individually - multiple instances will result in multiple batches, if this is so desired.