Package com.wavefront.agent.handlers
Interface SenderTask<T>
-
- Type Parameters:
T
- the type of input objects handled.
- All Superinterfaces:
Managed
public interface SenderTask<T> extends Managed
Batch and ship valid items to Wavefront servers- Author:
- [email protected]
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
add(T item)
Add valid item to the send queue (memory buffers).void
drainBuffersToQueue(QueueingReason reason)
Force memory buffer flush.long
getTaskRelativeScore()
Calculate a numeric score (the lower the better) that is intended to help theReportableEntityHandler
choose the best SenderTask to handle over data to.
-
-
-
Method Detail
-
add
void add(T item)
Add valid item to the send queue (memory buffers).- Parameters:
item
- item to add to the send queue.
-
getTaskRelativeScore
long getTaskRelativeScore()
Calculate a numeric score (the lower the better) that is intended to help theReportableEntityHandler
choose the best SenderTask to handle over data to.- Returns:
- task score
-
drainBuffersToQueue
void drainBuffersToQueue(@Nullable QueueingReason reason)
Force memory buffer flush.- Parameters:
reason
- reason for queueing.
-
-