@PublicEvolving public class JdbcExactlyOnceOptions extends Object implements Serializable
maxCommitAttempts - maximum number of commit attempts to make per transaction; must be > 0; state size is proportional to the product of max number of in-flight snapshots and this number.
allowOutOfOrderCommits - If true, all prepared transactions will be attempted to commit regardless of any transient failures during this operation. This may lead to inconsistency. Default: false.
recoveredAndRollback - whether to rollback prepared transactions known to XA RM on startup (after committing known transactions, i.e. restored from state).
NOTE that setting this parameter to true may:
See also XaFacade.recover()
Modifier and Type | Class and Description |
---|---|
static class |
JdbcExactlyOnceOptions.JDBCExactlyOnceOptionsBuilder
JDBCExactlyOnceOptionsBuilder.
|
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_TRANSACTION_PER_CONNECTION |
Modifier and Type | Method and Description |
---|---|
static JdbcExactlyOnceOptions.JDBCExactlyOnceOptionsBuilder |
builder() |
static JdbcExactlyOnceOptions |
defaults() |
int |
getMaxCommitAttempts() |
Integer |
getTimeoutSec() |
boolean |
isAllowOutOfOrderCommits() |
boolean |
isDiscoverAndRollbackOnRecovery() |
boolean |
isTransactionPerConnection() |
public static final boolean DEFAULT_TRANSACTION_PER_CONNECTION
public static JdbcExactlyOnceOptions defaults()
public boolean isDiscoverAndRollbackOnRecovery()
public boolean isAllowOutOfOrderCommits()
public int getMaxCommitAttempts()
public Integer getTimeoutSec()
public boolean isTransactionPerConnection()
public static JdbcExactlyOnceOptions.JDBCExactlyOnceOptionsBuilder builder()
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.