public interface RetryContext
extends org.springframework.core.AttributeAccessor
Modifier and Type | Field and Description |
---|---|
static String |
CLOSED
Retry context attribute that is non-null (and true) if the context has been closed.
|
static String |
EXHAUSTED
Retry context attribute that is non-null (and true) if the retry was exhausted.
|
static String |
NAME
Retry context attribute name for reporting key.
|
static String |
RECOVERED
Retry context attribute that is non-null (and true) if the recovery path was taken.
|
static String |
STATE_KEY
Retry context attribute name for state key.
|
Modifier and Type | Method and Description |
---|---|
Throwable |
getLastThrowable()
Accessor for the exception object that caused the current retry.
|
RetryContext |
getParent()
Accessor for the parent context if retry blocks are nested.
|
int |
getRetryCount()
Counts the number of retry attempts.
|
boolean |
isExhaustedOnly()
Public accessor for the exhausted flag
setExhaustedOnly() . |
void |
setExhaustedOnly()
Signal to the framework that no more attempts should be made to try or retry the
current
RetryCallback . |
static final String NAME
static final String STATE_KEY
static final String CLOSED
static final String RECOVERED
static final String EXHAUSTED
void setExhaustedOnly()
RetryCallback
.boolean isExhaustedOnly()
setExhaustedOnly()
.RetryContext getParent()
int getRetryCount()
Throwable getLastThrowable()
Copyright © 2018 SpringSource. All rights reserved.