public class ListenerFailedRuleBasedTransactionAttribute
extends org.springframework.transaction.interceptor.RuleBasedTransactionAttribute
RuleBasedTransactionAttribute that is aware that
listener exceptions are wrapped in ListenerExecutionFailedExceptions.
Allows users to control rollback based on the actual cause.PREFIX_COMMIT_RULE, PREFIX_ROLLBACK_RULEPREFIX_ISOLATION, PREFIX_PROPAGATION, PREFIX_TIMEOUT, READ_ONLY_MARKERISOLATION_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 and Description |
|---|
ListenerFailedRuleBasedTransactionAttribute() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
rollbackOn(Throwable ex) |
getRollbackRules, setRollbackRules, toStringgetAttributeDescription, getDescriptor, getQualifier, setDescriptor, setQualifierequals, getDefinitionDescription, getIsolationLevel, getName, getPropagationBehavior, getTimeout, hashCode, isReadOnly, setIsolationLevel, setIsolationLevelName, setName, setPropagationBehavior, setPropagationBehaviorName, setReadOnly, setTimeoutpublic ListenerFailedRuleBasedTransactionAttribute()
public boolean rollbackOn(Throwable ex)
rollbackOn in interface org.springframework.transaction.interceptor.TransactionAttributerollbackOn in class org.springframework.transaction.interceptor.RuleBasedTransactionAttribute