public class QueueableSender extends AbstractSender
| Modifier | Constructor and Description |
|---|---|
protected |
QueueableSender(int queueSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected boolean |
doSend(java.util.Collection<Measure> measuresToSend)
Realizes the action to send the measures
|
void |
flush()
Flushes measurements still held and forces them to be sent.
|
void |
send(Measure m)
Send the given
Measure. |
sendpublic void flush()
Senderpublic void send(Measure m)
SenderMeasure.
Depending on the implementation, the Sender is allowed to enqueue the real sending action.m - the Measure to be sent, if null this method is a NOOPprotected boolean doSend(java.util.Collection<Measure> measuresToSend)
measuresToSend - the collection of measure to be sentpublic void close()
throws java.io.IOException
java.io.IOException