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 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 the ReportableEntityHandler 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.