Class StatelessRetryOperationsInterceptorFactoryBean
java.lang.Object
org.springframework.amqp.rabbit.config.AbstractRetryOperationsInterceptorFactoryBean
org.springframework.amqp.rabbit.config.StatelessRetryOperationsInterceptorFactoryBean
- All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<org.aopalliance.aop.Advice>
public class StatelessRetryOperationsInterceptorFactoryBean
extends AbstractRetryOperationsInterceptorFactoryBean
Convenient factory bean for creating a stateless retry interceptor for use in a message listener container, giving
you a large amount of control over the behaviour of a container when a listener fails. To control the number of retry
attempts or the backoff in between attempts, supply a customized
RetryPolicy. Stateless retry is appropriate
if your listener can be called repeatedly between failures with no side effects. The semantics of stateless retry
mean that a listener exception is not propagated to the container until the retry attempts are exhausted. When the
retry attempts are exhausted it can be processed using a MessageRecoverer if one is provided, in the same
transaction (in which case no exception is propagated). If a recoverer is not provided, the exception will be
propagated and the message may be redelivered if the channel is transactional.- See Also:
-
Field Summary
FieldsFields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractRetryOperationsInterceptorFactoryBean
getMessageRecoverer, getRetryPolicy, setMessageRecoverer, setRetryPolicyMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBean
isSingleton
-
Field Details
-
logger
protected final org.apache.commons.logging.Log logger
-
-
Constructor Details
-
StatelessRetryOperationsInterceptorFactoryBean
public StatelessRetryOperationsInterceptorFactoryBean()
-
-
Method Details
-
getObject
-
recover
-
getObjectType
-