Creates a new client instance
Creates a new client instance
The MetricEncoder implementation this client will use
The MetricSender implementation this client will use
A prefix to add to all metric names. A period will be added to the end, resulting in prefix.metricname.
A sample rate default to be used for all metric methods. Defaults to 1.0
True if you want the client to asynch, false for blocking!
Maximum amount of metrics allowed to be queued at a time.
maximum size of byte buffer supplied to sender
A sample rate default to be used for all metric methods.
A sample rate default to be used for all metric methods. Defaults to 1.0
maximum size of byte buffer supplied to sender
Explicitly shut down the client and it's underlying bits.
(Since version ) see corresponding Javadoc for more information.
A Censorinus client! You should create one of these and reuse it across your application.
If
maxBatchSize
is defined, metrics will be batched before being sent tosender
. ThemaxBatchSize
param controls the maximum size of theByteBuffer
s sent tosender
. This should generally be smaller than the maximum allowable size of UDP packets on the system.