Package com.dieselpoint.norm.latency
Class DbLatencyWarning
java.lang.Object
com.dieselpoint.norm.latency.DbLatencyWarning
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 Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionDbLatencyWarning(long maxAcceptableLatency, long actualLatency, Transaction theNaughtyTransaction) protectedDbLatencyWarning(long maxAcceptableLatency, long actualLatency, String cause) DbLatencyWarning(long maxAcceptableLatency, long actualLatency, String theNaughtySql, Object[] theNaughtyArgs) -
Method Summary
-
Field Details
-
maxAcceptableLatency
public final long maxAcceptableLatency -
actualLatency
public final long actualLatency -
cause
-
offendingStatement
-
-
Constructor Details
-
DbLatencyWarning
-
DbLatencyWarning
-
DbLatencyWarning
public DbLatencyWarning(long maxAcceptableLatency, long actualLatency, Transaction theNaughtyTransaction)
-
-
Method Details