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)
or onEnd(Exception)
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(java.lang.Exception e)
This is invoked when the execution step is completed unsuccessfully
|
void |
onEnd(T result)
This is invoked when the execution step is completed successfully
|
void onEnd(T result)
result
- the successful result of the stepvoid onEnd(java.lang.Exception e)
e
- the exception that happened during the step