Interface LatencyAlerter

All Known Implementing Classes:
BackoffLatencyAlerter, ExceptionLatencyAlerter, Slf4jLatencyAlerter, StdoutLatencyAlerter

public interface LatencyAlerter
Interface used to alert administrators to latency issues. Multiple LatencyAlerters can be added to a Database, using the addLatencyAlerter. They will be called in order that they are added.
Implementations are provided that log with Slf4j, that log to standard out and that throw an exception, but it should be trivial to forward the latency alert to e.g. AWS Cloudwatch, PagerDuty, or honeybadger.io
  • Method Details