Interface ApacheHttpSinkEventHandler

All Known Implementing Classes:
InstrumentedApacheHttpSinkEventHandler

public interface ApacheHttpSinkEventHandler
Interface for callbacks from client.
Author:
Ville Koskela (ville dot koskela at inscopemetrics dot io)
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    attemptComplete(long records, long bytes, boolean success, long elapasedTime, TimeUnit elapsedTimeUnit)
    Callback invoked when a request to send samples has completed.
    void
    droppedEvent(com.arpnetworking.metrics.Event event)
    Callback invoked when an Event is dropped from the queue.
  • Method Details

    • attemptComplete

      void attemptComplete(long records, long bytes, boolean success, long elapasedTime, TimeUnit elapsedTimeUnit)
      Callback invoked when a request to send samples has completed.
      Parameters:
      records - the number of records sent
      bytes - the number of bytes sent
      success - success or failure
      elapasedTime - the elapsed time
      elapsedTimeUnit - the elapsed time unit
    • droppedEvent

      void droppedEvent(com.arpnetworking.metrics.Event event)
      Callback invoked when an Event is dropped from the queue.
      Parameters:
      event - the Event dropped from the queue