public class ClientTransactionConfiguration extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static long |
DFLT_TRANSACTION_TIMEOUT
Default transaction timeout.
|
static TransactionConcurrency |
DFLT_TX_CONCURRENCY
Default concurrency mode.
|
static TransactionIsolation |
DFLT_TX_ISOLATION
Default transaction isolation level.
|
Constructor and Description |
---|
ClientTransactionConfiguration()
Empty constructor.
|
ClientTransactionConfiguration(ClientTransactionConfiguration cfg) |
Modifier and Type | Method and Description |
---|---|
TransactionConcurrency |
getDefaultTxConcurrency()
Default transaction concurrency to use when one is not explicitly specified.
|
TransactionIsolation |
getDefaultTxIsolation()
Default transaction isolation to use when one is not explicitly specified.
|
long |
getDefaultTxTimeout()
Gets default transaction timeout.
|
ClientTransactionConfiguration |
setDefaultTxConcurrency(TransactionConcurrency dfltConcurrency)
Sets default transaction concurrency.
|
ClientTransactionConfiguration |
setDefaultTxIsolation(TransactionIsolation dfltIsolation)
Sets default transaction isolation.
|
ClientTransactionConfiguration |
setDefaultTxTimeout(long dfltTxTimeout)
Sets default transaction timeout in milliseconds.
|
String |
toString() |
public static final TransactionConcurrency DFLT_TX_CONCURRENCY
public static final TransactionIsolation DFLT_TX_ISOLATION
public static final long DFLT_TRANSACTION_TIMEOUT
public ClientTransactionConfiguration()
public ClientTransactionConfiguration(ClientTransactionConfiguration cfg)
cfg
- Configuration to copy.public TransactionConcurrency getDefaultTxConcurrency()
DFLT_TX_CONCURRENCY
.public ClientTransactionConfiguration setDefaultTxConcurrency(TransactionConcurrency dfltConcurrency)
dfltConcurrency
- Default transaction concurrency.this
for chaining.public TransactionIsolation getDefaultTxIsolation()
DFLT_TX_ISOLATION
.Transaction
public ClientTransactionConfiguration setDefaultTxIsolation(TransactionIsolation dfltIsolation)
dfltIsolation
- Default transaction isolation.this
for chaining.public long getDefaultTxTimeout()
DFLT_TRANSACTION_TIMEOUT
which is 0
and means that transactions
will never time out.public ClientTransactionConfiguration setDefaultTxTimeout(long dfltTxTimeout)
dfltTxTimeout
- Default transaction timeout.this
for chaining.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023