Class ListenerFailedRuleBasedTransactionAttribute
java.lang.Object
org.springframework.transaction.support.DefaultTransactionDefinition
org.springframework.transaction.interceptor.DefaultTransactionAttribute
org.springframework.transaction.interceptor.RuleBasedTransactionAttribute
org.springframework.amqp.rabbit.listener.ListenerFailedRuleBasedTransactionAttribute
- All Implemented Interfaces:
Serializable, org.springframework.transaction.interceptor.TransactionAttribute, org.springframework.transaction.TransactionDefinition
public class ListenerFailedRuleBasedTransactionAttribute
extends org.springframework.transaction.interceptor.RuleBasedTransactionAttribute
Subclass of
RuleBasedTransactionAttribute that is aware that
listener exceptions are wrapped in ListenerExecutionFailedExceptions.
Allows users to control rollback based on the actual cause.- Since:
- 1.6.6
- See Also:
-
Field Summary
Fields inherited from class org.springframework.transaction.interceptor.RuleBasedTransactionAttribute
PREFIX_COMMIT_RULE, PREFIX_ROLLBACK_RULEFields inherited from class org.springframework.transaction.support.DefaultTransactionDefinition
PREFIX_ISOLATION, PREFIX_PROPAGATION, PREFIX_TIMEOUT, READ_ONLY_MARKERFields inherited from interface org.springframework.transaction.TransactionDefinition
ISOLATION_DEFAULT, ISOLATION_READ_COMMITTED, ISOLATION_READ_UNCOMMITTED, ISOLATION_REPEATABLE_READ, ISOLATION_SERIALIZABLE, PROPAGATION_MANDATORY, PROPAGATION_NESTED, PROPAGATION_NEVER, PROPAGATION_NOT_SUPPORTED, PROPAGATION_REQUIRED, PROPAGATION_REQUIRES_NEW, PROPAGATION_SUPPORTS, TIMEOUT_DEFAULT -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.springframework.transaction.interceptor.RuleBasedTransactionAttribute
getRollbackRules, setRollbackRules, toStringMethods inherited from class org.springframework.transaction.interceptor.DefaultTransactionAttribute
getAttributeDescription, getDescriptor, getLabels, getQualifier, getTimeoutString, resolveAttributeStrings, setDescriptor, setLabels, setQualifier, setTimeoutStringMethods inherited from class org.springframework.transaction.support.DefaultTransactionDefinition
equals, getDefinitionDescription, getIsolationLevel, getName, getPropagationBehavior, getTimeout, hashCode, isReadOnly, setIsolationLevel, setIsolationLevelName, setName, setPropagationBehavior, setPropagationBehaviorName, setReadOnly, setTimeoutMethods inherited from interface org.springframework.transaction.TransactionDefinition
getIsolationLevel, getName, getPropagationBehavior, getTimeout, isReadOnly
-
Constructor Details
-
ListenerFailedRuleBasedTransactionAttribute
public ListenerFailedRuleBasedTransactionAttribute()
-
-
Method Details
-
rollbackOn
- Specified by:
rollbackOnin interfaceorg.springframework.transaction.interceptor.TransactionAttribute- Overrides:
rollbackOnin classorg.springframework.transaction.interceptor.RuleBasedTransactionAttribute
-