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
Modifier and TypeInterfaceDescriptionstatic class
Value object capturing the actual invocation.static interface
-
Method Summary
Modifier and TypeMethodDescriptionvoid
afterInvocation
(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.
-