public interface Tracer
| Modifier and Type | Method and Description |
|---|---|
void |
entering(java.lang.Object source,
java.lang.String method,
java.lang.Object... params)
Creates an entering trace message.
|
void |
exiting(java.lang.Object source,
java.lang.String method)
Creates an exiting trace message.
|
void |
onError(java.lang.Object source,
java.lang.String method,
java.lang.Throwable error)
Triggered when an unhandled exception occurs.
|
<T> void |
returning(java.lang.Object source,
java.lang.String method,
T returnValue) |
void |
timeout(java.lang.Object source,
java.lang.String method,
long timeoutThreshold,
long timeout)
Triggered when the time between the entering and exiting events exceeds a certain amount of time in milliseconds.
|
void |
valueChange(java.lang.Object source,
java.lang.String method,
java.lang.String variable,
java.lang.Object value)
Creates a value change trace message immediately after a successful update.
|
void entering(java.lang.Object source,
java.lang.String method,
java.lang.Object... params)
source - The object triggering the tracing event.method - The method name, where the tracing event happened.params - Parameters of the method in question. They are passed as {name, value} pairs in sequence.void exiting(java.lang.Object source,
java.lang.String method)
Void return value.source - The object triggering the tracing event.method - The method name, where the tracing event happened.void valueChange(java.lang.Object source,
java.lang.String method,
java.lang.String variable,
java.lang.Object value)
source - The object triggering the event.method - The method name, where the tracing event happened.variable - The name of the variable that had a new value assignedvalue - The value that was assigned to the variable<T> void returning(java.lang.Object source,
java.lang.String method,
T returnValue)
T - Type of the return valuesource - The object triggering the eventmethod - The method name, where the tracing event happenedreturnValue - The value that the current method returnsvoid onError(java.lang.Object source,
java.lang.String method,
java.lang.Throwable error)
source - The object triggering the event.method - The method name, where the tracing event happened.error - The capture exception object.void timeout(java.lang.Object source,
java.lang.String method,
long timeoutThreshold,
long timeout)
source - The object triggering the eventmethod - The method name, where the timeout event happenedtimeoutThreshold - Threshold value for the current methodtimeout - The timeout value in milliseconds that triggered the event. This is always larger than the threshold value.