Package com.arpnetworking.metrics.impl
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 TypeMethodDescriptionvoid
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 anEvent
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 sentbytes
- the number of bytes sentsuccess
- success or failureelapasedTime
- the elapsed timeelapsedTimeUnit
- the elapsed time unit
-
droppedEvent
void droppedEvent(com.arpnetworking.metrics.Event event) Callback invoked when anEvent
is dropped from the queue.- Parameters:
event
- theEvent
dropped from the queue
-