Module spring.data.commons
Interface RepositoryMethodInvocationListener
public interface RepositoryMethodInvocationListener
Interface to be implemented by listeners that want to be notified upon repository method invocation. Listeners are
notified with an
RepositoryMethodInvocationListener.RepositoryMethodInvocation object that describes which repository method was invoked along
with invocation arguments and the call duration.- Since:
- 2.4
- Author:
- Mark Paluch, Christoph Strobl
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classValue object capturing the actual invocation.static interface -
Method Summary
Modifier and TypeMethodDescriptionvoidafterInvocation(RepositoryMethodInvocationListener.RepositoryMethodInvocation repositoryMethodInvocation) Handle the invocation event.
-
Method Details
-
afterInvocation
void afterInvocation(RepositoryMethodInvocationListener.RepositoryMethodInvocation repositoryMethodInvocation) Handle the invocation event. This method is called after the execution has finished.- Parameters:
repositoryMethodInvocation- the invocation to respond to.
-