public interface InstrumentationContext<T>
Instrumentation
.'beginXXX' method is called then it must return a non null InstrumentationContext
that will the be invoked as onEnd(Object, java.lang.Throwable)
when the step completes.
This pattern of construction of an object then call back is intended to allow "timers" to be created that can instrument what has
just happened or "loggers" to be called to record what has happened.Modifier and Type | Method and Description |
---|---|
void |
onEnd(T result,
java.lang.Throwable t)
This is invoked when the execution step is completed
|
void onEnd(T result, java.lang.Throwable t)
result
- the result of the step (which may be null)t
- this exception will be non null if an exception was thrown during the step