public static class RepositoryMethodInvocationListener.RepositoryMethodInvocation extends Object
| Constructor and Description |
|---|
RepositoryMethodInvocation(Class<?> repositoryInterface,
Method method,
RepositoryMethodInvocationListener.RepositoryMethodInvocationResult result,
long durationNs) |
| Modifier and Type | Method and Description |
|---|---|
long |
getDuration(TimeUnit timeUnit) |
Method |
getMethod() |
Class<?> |
getRepositoryInterface() |
RepositoryMethodInvocationListener.RepositoryMethodInvocationResult |
getResult() |
String |
toString() |
public RepositoryMethodInvocation(Class<?> repositoryInterface, Method method, RepositoryMethodInvocationListener.RepositoryMethodInvocationResult result, long durationNs)
repositoryInterface - the repository interface that was used to call Method.method - the actual method that was called.result - the outcome of the invocation. Must not be null.durationNs - the duration in TimeUnit.NANOSECONDS.public long getDuration(TimeUnit timeUnit)
public Class<?> getRepositoryInterface()
public Method getMethod()
@Nullable public RepositoryMethodInvocationListener.RepositoryMethodInvocationResult getResult()
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.