public class LastExecutionAwareListener extends Object implements ProxyExecutionListener
| Constructor and Description |
|---|
LastExecutionAwareListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterMethod(MethodExecutionInfo executionInfo)
Called after every invocation of methods.
|
void |
afterQuery(QueryExecutionInfo execInfo)
Called after execution of query.
|
void |
beforeMethod(MethodExecutionInfo executionInfo)
Called before every invocation of methods.
|
void |
beforeQuery(QueryExecutionInfo execInfo)
Called before execution of query.
|
void |
eachQueryResult(QueryExecutionInfo execInfo)
Called on processing each query
Result. |
MethodExecutionInfo |
getAfterMethodExecutionInfo() |
QueryExecutionInfo |
getAfterQueryExecutionInfo() |
MethodExecutionInfo |
getBeforeMethodExecutionInfo() |
QueryExecutionInfo |
getBeforeQueryExecutionInfo() |
QueryExecutionInfo |
getEachQueryResultExecutionInfo() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonMethodExecution, onQueryExecutionpublic 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().
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 subscribing query results, this callback is called per result.eachQueryResult in interface ProxyExecutionListenerexecInfo - query execution contextpublic void beforeMethod(MethodExecutionInfo executionInfo)
ProxyExecutionListenerbeforeMethod in interface ProxyExecutionListenerexecutionInfo - method execution contextpublic void afterMethod(MethodExecutionInfo executionInfo)
ProxyExecutionListenerafterMethod in interface ProxyExecutionListenerexecutionInfo - method execution contextpublic QueryExecutionInfo getBeforeQueryExecutionInfo()
public QueryExecutionInfo getAfterQueryExecutionInfo()
public QueryExecutionInfo getEachQueryResultExecutionInfo()
public MethodExecutionInfo getBeforeMethodExecutionInfo()
public MethodExecutionInfo getAfterMethodExecutionInfo()
Copyright © 2018. All rights reserved.