MySqlTransactionDefinition instead.@Deprecated public final class MySqlTransactionDefinition extends Object implements io.r2dbc.spi.TransactionDefinition
TransactionDefinition for MySQL transactions.
Note: The lock wait timeout is only available in InnoDB, and only supports seconds, which must be between 1 and 1073741824.
| Modifier and Type | Class and Description |
|---|---|
static class |
MySqlTransactionDefinition.Builder
Deprecated.
A builder considers to create
TransactionDefinition. |
| Modifier and Type | Field and Description |
|---|---|
static io.r2dbc.spi.Option<?> |
CONSISTENT_SNAPSHOT_ENGINE
Deprecated.
Use
WITH CONSISTENT [engine] SNAPSHOT for Facebook/MySQL or similar property. |
static io.r2dbc.spi.Option<Long> |
CONSISTENT_SNAPSHOT_FROM_SESSION
Deprecated.
Use
WITH CONSISTENT SNAPSHOT FROM SESSION [session_id] for Percona/MySQL or similar property. |
static io.r2dbc.spi.Option<Boolean> |
WITH_CONSISTENT_SNAPSHOT
Deprecated.
Use
WITH CONSISTENT SNAPSHOT property. |
| Modifier and Type | Method and Description |
|---|---|
static MySqlTransactionDefinition.Builder |
builder()
Deprecated.
Creates a builder without any value.
|
static MySqlTransactionDefinition |
empty()
Deprecated.
Defines an empty transaction.
|
<T> T |
getAttribute(io.r2dbc.spi.Option<T> option)
Deprecated.
|
MySqlTransactionDefinition.Builder |
mutate()
Deprecated.
Returns a builder to mutate options of this definition by creating a new instance and returning either
mutated values or old values.
|
public static final io.r2dbc.spi.Option<Boolean> WITH_CONSISTENT_SNAPSHOT
WITH CONSISTENT SNAPSHOT property.
The option starts a consistent read for storage engines such as InnoDB and XtraDB that can do so, the
same as if a START TRANSACTION followed by a SELECT ... from any InnoDB table was
issued.
public static final io.r2dbc.spi.Option<?> CONSISTENT_SNAPSHOT_ENGINE
WITH CONSISTENT [engine] SNAPSHOT for Facebook/MySQL or similar property. Only available
when WITH_CONSISTENT_SNAPSHOT is set to true.
Note: This is an extended syntax based on specific distributions. Please check whether the server supports this property before using it.
public static final io.r2dbc.spi.Option<Long> CONSISTENT_SNAPSHOT_FROM_SESSION
WITH CONSISTENT SNAPSHOT FROM SESSION [session_id] for Percona/MySQL or similar property.
Only available when WITH_CONSISTENT_SNAPSHOT is set to true.
The session_id is received by SHOW COLUMNS FROM performance_schema.processlist, it
should be an unsigned 64-bit integer. Use SHOW PROCESSLIST to find session identifier of the
process list.
Note: This is an extended syntax based on specific distributions. Please check whether the server supports this property before using it.
public <T> T getAttribute(io.r2dbc.spi.Option<T> option)
getAttribute in interface io.r2dbc.spi.TransactionDefinitionpublic MySqlTransactionDefinition.Builder mutate()
public static MySqlTransactionDefinition empty()
public static MySqlTransactionDefinition.Builder builder()
Copyright © 2018–2024 asyncer.io. All rights reserved.