public interface Sender
extends java.io.Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
flush()
Flushes measurements still held and forces them to be sent.
|
void |
send(java.util.Collection<Measurement> measures)
Send the given measurements.
|
void |
send(Measurement m)
Send the given
Measurement. |
void flush()
void send(Measurement m)
Measurement.
Depending on the implementation, the Sender is allowed to enqueue the real sending action.m - the measurement to be sent, if null this method is a NOOPvoid send(java.util.Collection<Measurement> measures)
Sender is allowed to enqueue the real sending action.measures - the measurements to be sent, if null this method is a NOOP