@Deprecated public final class LifeCycleExecutionListener extends Object implements ProxyExecutionListener
LifeCycleListener.| Modifier and Type | Method and Description |
|---|---|
void |
afterMethod(MethodExecutionInfo executionInfo)
Deprecated.
Called after every invocation of methods.
|
void |
afterQuery(QueryExecutionInfo execInfo)
Deprecated.
Called after executing a query (
Batch.execute() or Statement.execute()). |
void |
beforeMethod(MethodExecutionInfo executionInfo)
Deprecated.
Called before every invocation of methods.
|
void |
beforeQuery(QueryExecutionInfo execInfo)
Deprecated.
Called before executing a query (
Batch.execute() or Statement.execute()). |
void |
eachQueryResult(QueryExecutionInfo execInfo)
Deprecated.
Called on processing each query
Result. |
static LifeCycleExecutionListener |
of(LifeCycleListener lifeCycleListener)
Deprecated.
|
public static LifeCycleExecutionListener of(LifeCycleListener lifeCycleListener)
public void beforeMethod(MethodExecutionInfo executionInfo)
ProxyExecutionListenerbeforeMethod in interface ProxyExecutionListenerexecutionInfo - method execution contextpublic void afterMethod(MethodExecutionInfo executionInfo)
ProxyExecutionListenerafterMethod in interface ProxyExecutionListenerexecutionInfo - method execution contextpublic void beforeQuery(QueryExecutionInfo execInfo)
ProxyExecutionListenerBatch.execute() or Statement.execute()).
Note: this callback is called when the publisher, result of the execute(), is being
subscribed. Not at the time of execute() is called,
beforeQuery in interface ProxyExecutionListenerexecInfo - query execution contextpublic void afterQuery(QueryExecutionInfo execInfo)
ProxyExecutionListenerBatch.execute() or Statement.execute()).
The callback order is:
ProxyExecutionListener.beforeQuery(QueryExecutionInfo)
ProxyExecutionListener.eachQueryResult(QueryExecutionInfo) for 1st result
ProxyExecutionListener.eachQueryResult(QueryExecutionInfo) for 2nd result
ProxyExecutionListener.eachQueryResult(QueryExecutionInfo) for Nth result
ProxyExecutionListener.afterQuery(QueryExecutionInfo)
QueryExecutionInfo.getExecuteDuration() is available in this callback and it holds
the duration since ProxyExecutionListener.beforeQuery(QueryExecutionInfo).
Note: this callback is called when the publisher, result of the execute(), is being
subscribed. Not at the time of execute() is called,
afterQuery in interface ProxyExecutionListenerexecInfo - query execution contextpublic void eachQueryResult(QueryExecutionInfo execInfo)
ProxyExecutionListenerResult.
While processing query results with Result.map(BiFunction), this callback
is called per result.
QueryExecutionInfo.getCurrentMappedResult() contains the mapped result.
eachQueryResult in interface ProxyExecutionListenerexecInfo - query execution contextCopyright © 2020. All rights reserved.