Iterate over all lines, batching metrics as possible, and sending them
to f
.
Iterate over all lines, batching metrics as possible, and sending them
to f
. The ByteBuffer
provided to f
is only owned by the caller for
the duration of f
. Any use of the ByteBuffer
outside of this will
result in undefined and, likely, confusing/incorrect behaviour. This
will completely exhaust line
.
the encoded metrics to batch
the caller-supplied function to send the batched metrics to
(Since version ) see corresponding Javadoc for more information.
Batches metrics encoded with a MetricEncoder into byte buffers to be sent with a MetricSender.