batch method

StatsdBatch batch ()

Creates new batch of packets.

Returned object can be used to send multiple metrics at once:

StatsdClient client = new StatsdClient(connection);
client.batch()
  ..count('totals', 4)
  ..set('metric2', 423)
  ..send();

Implementation

StatsdBatch batch();