|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.core.AttributeAccessorSupport
org.springframework.batch.retry.context.RetryContextSupport
public class RetryContextSupport
| Constructor Summary | |
|---|---|
RetryContextSupport(RetryContext parent)
|
|
| Method Summary | |
|---|---|
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 RetryContext.setExhaustedOnly(). |
void |
registerThrowable(Throwable throwable)
Set the exception for the public interface RetryContext, and
also increment the retry count if the throwable is non-null. |
void |
setExhaustedOnly()
Signal to the framework that no more attempts should be made to try or retry the current RetryCallback. |
String |
toString()
|
| Methods inherited from class org.springframework.core.AttributeAccessorSupport |
|---|
attributeNames, copyAttributesFrom, equals, getAttribute, hasAttribute, hashCode, removeAttribute, setAttribute |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.springframework.core.AttributeAccessor |
|---|
attributeNames, getAttribute, hasAttribute, removeAttribute, setAttribute |
| Constructor Detail |
|---|
public RetryContextSupport(RetryContext parent)
| Method Detail |
|---|
public RetryContext getParent()
RetryContext
getParent in interface RetryContextpublic boolean isExhaustedOnly()
RetryContextRetryContext.setExhaustedOnly().
isExhaustedOnly in interface RetryContextpublic void setExhaustedOnly()
RetryContextRetryCallback.
setExhaustedOnly in interface RetryContextpublic int getRetryCount()
RetryContext
getRetryCount in interface RetryContextpublic Throwable getLastThrowable()
RetryContext
getLastThrowable in interface RetryContextpublic void registerThrowable(Throwable throwable)
RetryContext, and
also increment the retry count if the throwable is non-null.RetryPolicy implementations should use this method when they
register the throwable. It should only be called once per retry attempt
because it increments a counter.
throwable - the exception that caused the current retry attempt to
fail.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||