public class BasicProfilingHandler extends java.lang.Object implements ProfilingHandler
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_ERROR_THRESHOLD_IN_SECONDS |
static int |
DEFAULT_WARN_THRESHOLD_IN_SECONDS |
protected static org.slf4j.Marker |
PROFILE_MARKER |
PROFILE_MARKER_NAME
Constructor and Description |
---|
BasicProfilingHandler() |
Modifier and Type | Method and Description |
---|---|
int |
getErrorThresholdInSeconds() |
int |
getWarnThresholdInSeconds() |
void |
profile(org.slf4j.Logger logger,
java.lang.String methodBaseName,
java.lang.String fullMethodSignature,
long nanoSeconds) |
void |
setErrorThresholdInSeconds(int errorThresholdInSeconds) |
void |
setWarnThresholdInSeconds(int warnThresholdInSeconds) |
java.lang.String |
toString() |
protected static final org.slf4j.Marker PROFILE_MARKER
public static final int DEFAULT_WARN_THRESHOLD_IN_SECONDS
public static final int DEFAULT_ERROR_THRESHOLD_IN_SECONDS
public int getWarnThresholdInSeconds()
public void setWarnThresholdInSeconds(int warnThresholdInSeconds)
public int getErrorThresholdInSeconds()
public void setErrorThresholdInSeconds(int errorThresholdInSeconds)
public void profile(org.slf4j.Logger logger, java.lang.String methodBaseName, java.lang.String fullMethodSignature, long nanoSeconds)
profile
in interface ProfilingHandler
public java.lang.String toString()
toString
in class java.lang.Object