-
Optional Element Summary
Optional Elements
boolean
If true, will automatically retry 5 times (with backoff) if the method throws StaleStateException
, LockAcquisitionException
, GenericJDBCException
, or a LockAcquisitionException wrapped in a PersistenceException, or an error that indicates a SQL Server snapshot isolation conflict
int
A list of exceptions to *not* rollback on.
int
boolean
A list of exceptions to rollback on, if thrown by the transactional method.
-
-
Field Details
-
IGNORE_ISOLATION_LEVEL
static final int IGNORE_ISOLATION_LEVEL
- See Also:
-
-
Element Details
-
readOnly
boolean readOnly
- Default:
- false
-
autoRetry
boolean autoRetry
If true, will automatically retry 5 times (with backoff) if the method throws StaleStateException
, LockAcquisitionException
, GenericJDBCException
, or a LockAcquisitionException wrapped in a PersistenceException, or an error that indicates a SQL Server snapshot isolation conflict
- Returns:
- Default:
- true
-
autoRetryCount
int autoRetryCount
- Default:
- 5
-
isolationLevel
int isolationLevel
- Default:
- -1
-
rollbackOn
A list of exceptions to rollback on, if thrown by the transactional method. These exceptions are propagated correctly after
a rollback.
- Returns:
- Returns the configured rollback exceptions.
- Default:
- {java.lang.RuntimeException.class}
-
exceptOn
A list of exceptions to *not* rollback on. A caveat to the rollbackOn clause.
The disjunction of rollbackOn and exceptOn represents the list of exceptions that will trigger a rollback. The complement
of rollbackOn and the universal set plus any exceptions in the exceptOn
set represents the list of exceptions that will trigger a commit.
Note that exceptOn exceptions take precedence over rollbackOn, but with subtype granularity.
- Returns:
- Returns the configured rollback exceptions.
- Default:
- {}