Class DbLatencyWarning

java.lang.Object
com.dieselpoint.norm.latency.DbLatencyWarning

public class DbLatencyWarning extends Object
An exception-like class, that makes it easy to pass the messages, and stack trace associated with a Query or Transaction.commit() database call that has exceeded its latency threshold. LatencyAlerters can make a decision how to alert the system administrators to the warning
  • Field Details

    • maxAcceptableLatency

      public final long maxAcceptableLatency
    • actualLatency

      public final long actualLatency
    • cause

      public final String cause
    • offendingStatement

      public final String offendingStatement
  • Constructor Details

    • DbLatencyWarning

      protected DbLatencyWarning(long maxAcceptableLatency, long actualLatency, String cause)
    • DbLatencyWarning

      public DbLatencyWarning(long maxAcceptableLatency, long actualLatency, String theNaughtySql, Object[] theNaughtyArgs)
    • DbLatencyWarning

      public DbLatencyWarning(long maxAcceptableLatency, long actualLatency, Transaction theNaughtyTransaction)
  • Method Details