public class ListenerFailedRuleBasedTransactionAttribute
extends org.springframework.transaction.interceptor.RuleBasedTransactionAttribute
RuleBasedTransactionAttribute
that is aware that
listener exceptions are wrapped in ListenerExecutionFailedException
s.
Allows users to control rollback based on the actual cause.PREFIX_COMMIT_RULE, PREFIX_ROLLBACK_RULE
PREFIX_ISOLATION, PREFIX_PROPAGATION, PREFIX_TIMEOUT, READ_ONLY_MARKER
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 and Description |
---|
ListenerFailedRuleBasedTransactionAttribute() |
Modifier and Type | Method and Description |
---|---|
boolean |
rollbackOn(java.lang.Throwable ex) |
getRollbackRules, setRollbackRules, toString
getAttributeDescription, getDescriptor, getQualifier, setDescriptor, setQualifier
equals, getDefinitionDescription, getIsolationLevel, getName, getPropagationBehavior, getTimeout, hashCode, isReadOnly, setIsolationLevel, setIsolationLevelName, setName, setPropagationBehavior, setPropagationBehaviorName, setReadOnly, setTimeout