org.springframework.batch.core.step.item
Class StatefulRetryStepFactoryBean
java.lang.Object
org.springframework.batch.core.step.item.AbstractStepFactoryBean
org.springframework.batch.core.step.item.SimpleStepFactoryBean
org.springframework.batch.core.step.item.SkipLimitStepFactoryBean
org.springframework.batch.core.step.item.StatefulRetryStepFactoryBean
- All Implemented Interfaces:
- BeanNameAware, FactoryBean
Deprecated. All the features of this factory bean were moved to
SkipLimitStepFactoryBean
in version 1.1.0.
public class StatefulRetryStepFactoryBean
- extends SkipLimitStepFactoryBean
Factory bean for step that executes its item processing with a stateful
retry. Failed items where the exception is classified as retryable always
cause a rollback. Before a rollback, the Step
makes a record of the
failed item, caching it under a key given by the ItemKeyGenerator
.
Then when it is re-presented by the ItemReader
it is recognised and
retried up to a limit given by the RetryPolicy
. When the retry is
exhausted the item is skipped and handled by a SkipListener
if one is
present.
The skipLimit property is still used to control the overall exception
handling policy. Only exhausted retries count against the exception handler,
instead of counting all exceptions.
This class is not designed for extension. Do not subclass it.
- Author:
- Dave Syer
Methods inherited from class org.springframework.batch.core.step.item.SkipLimitStepFactoryBean |
addFatalExceptionIfMissing, applyConfiguration, setBackOffPolicy, setCacheCapacity, setFatalExceptionClasses, setItemKeyGenerator, setRetryableExceptionClasses, setRetryLimit, setRetryListeners, setRetryPolicy, setSkipLimit, setSkippableExceptionClasses |
Methods inherited from class org.springframework.batch.core.step.item.AbstractStepFactoryBean |
getItemReader, getItemWriter, getListeners, getName, getObject, getObjectType, getTransactionAttribute, isSingleton, setAllowStartIfComplete, setBeanName, setItemReader, setItemWriter, setJobRepository, setListeners, setSingleton, setStartLimit, setStreams, setTransactionAttribute, setTransactionManager |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StatefulRetryStepFactoryBean
public StatefulRetryStepFactoryBean()
- Deprecated.
Copyright © 2009 SpringSource. All Rights Reserved.