public class ListenerFailedRuleBasedTransactionAttribute extends 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, getLabels, getQualifier, getTimeoutString, resolveAttributeStrings, setDescriptor, setLabels, setQualifier, setTimeoutStringequals, getDefinitionDescription, getIsolationLevel, getName, getPropagationBehavior, getTimeout, hashCode, isReadOnly, setIsolationLevel, setIsolationLevelName, setName, setPropagationBehavior, setPropagationBehaviorName, setReadOnly, setTimeoutclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetIsolationLevel, getName, getPropagationBehavior, getTimeout, isReadOnly, withDefaultspublic ListenerFailedRuleBasedTransactionAttribute()
public boolean rollbackOn(Throwable ex)
rollbackOn in interface TransactionAttributerollbackOn in class RuleBasedTransactionAttribute