T
- the type of object returned by the callbackE
- the type of exception it declares may be thrownpublic abstract class MethodInvocationRetryCallback<T,E extends Throwable> extends Object implements RetryCallback<T,E>
RetryOperations
.
In a concrete RetryListener
implementation, the
`MethodInvocation` can be analysed for providing insights on the method called as well
as its parameter values which could then be used for monitoring purposes.StatefulRetryOperationsInterceptor
,
RetryOperationsInterceptor
,
MethodInvocationRetryListenerSupport
Modifier and Type | Field and Description |
---|---|
protected org.aopalliance.intercept.MethodInvocation |
invocation |
protected String |
label |
Constructor and Description |
---|
MethodInvocationRetryCallback(org.aopalliance.intercept.MethodInvocation invocation,
String label)
Constructor for the class.
|
Modifier and Type | Method and Description |
---|---|
org.aopalliance.intercept.MethodInvocation |
getInvocation() |
String |
getLabel() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
doWithRetry
protected final org.aopalliance.intercept.MethodInvocation invocation
protected final String label
public MethodInvocationRetryCallback(org.aopalliance.intercept.MethodInvocation invocation, String label)
invocation
- the method invocationlabel
- a unique label for statistics reporting.public org.aopalliance.intercept.MethodInvocation getInvocation()
public String getLabel()
Copyright © 2021 SpringSource. All rights reserved.