public interface MethodExecutionInfo
Modifier and Type | Method and Description |
---|---|
ConnectionInfo |
getConnectionInfo()
Get the
ConnectionInfo . |
Duration |
getExecuteDuration()
Get the duration of the method invocation.
|
Method |
getMethod()
Get the invoked
Method . |
Object[] |
getMethodArgs()
Get the arguments of the invocation.
|
ProxyEventType |
getProxyEventType()
Get the proxy event type.
|
Object |
getResult()
Get the result of invocation.
|
Object |
getTarget()
Get the invoked object.
|
long |
getThreadId()
Get the thread ID.
|
String |
getThreadName()
Get the thread name.
|
Throwable |
getThrown()
Get the thrown exception.
|
ValueStore |
getValueStore()
Retrieve
ValueStore which is associated to the scope of before/after method execution. |
Object getTarget()
Method getMethod()
Method
.@Nullable Object[] getMethodArgs()
null
when method is invoked with no argument.null
if the invoked method did not take any arguments@Nullable Object getResult()
ProxyExecutionListener.beforeMethod(MethodExecutionInfo)
callback, this returns null
.@Nullable Throwable getThrown()
ProxyExecutionListener.beforeMethod(MethodExecutionInfo)
callback or when the invocation
did't throw any error, this returns null
.@Nullable ConnectionInfo getConnectionInfo()
ConnectionInfo
.
When invoked operation is not associated to the Connection
, this returns null
.Duration getExecuteDuration()
ProxyExecutionListener.beforeMethod(MethodExecutionInfo)
callback, this returns Duration.ZERO
.String getThreadName()
long getThreadId()
ProxyEventType getProxyEventType()
ProxyEventType.BEFORE_METHOD
or ProxyEventType.AFTER_METHOD
ValueStore getValueStore()
ValueStore
which is associated to the scope of before/after method execution.
Mainly used for passing values between ProxyExecutionListener.beforeMethod(MethodExecutionInfo)
and
ProxyExecutionListener.afterMethod(MethodExecutionInfo)
.Copyright © 2024. All rights reserved.