public interface CallTracker
Marker interface for methods that are tracked for info point information.
Modifier and Type | Method and Description |
---|---|
void |
reportCallEnded()
Report that call ended.
|
void |
reportCallEndedWithException(java.lang.Exception exceptionThrown)
Report that the call failed and threw an exception.
|
void |
reportCallEndedWithReturnValue(java.lang.Object returnValue)
Report that the call ended by returning a value.
|
CallTracker |
withArguments(java.lang.Object... args)
Specify the arguments with which the method call was invoked.
|
CallTracker withArguments(java.lang.Object... args)
Specify the arguments with which the method call was invoked.
args
- list of arguments to the method.void reportCallEndedWithReturnValue(java.lang.Object returnValue)
Report that the call ended by returning a value. Future invocations on this object has no effect.
returnValue
- value returned by the method.void reportCallEndedWithException(java.lang.Exception exceptionThrown)
Report that the call failed and threw an exception. Future invocations on this object has no effect.
exceptionThrown
- exception thrown by the method.void reportCallEnded()
Report that call ended. Future invocations on this object has no effect.