public static enum Db2ConnectorConfig.SnapshotIsolationMode extends Enum<Db2ConnectorConfig.SnapshotIsolationMode> implements io.debezium.config.EnumeratedValue
| Enum Constant and Description |
|---|
EXCLUSIVE
This mode will block all reads and writes for the entire duration of the snapshot.
|
READ_COMMITTED
This mode uses READ COMMITTED isolation level.
|
READ_UNCOMMITTED
This mode uses READ UNCOMMITTED isolation level.
|
REPEATABLE_READ
This mode uses REPEATABLE READ isolation level.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getValue() |
static Db2ConnectorConfig.SnapshotIsolationMode |
parse(String value)
Determine if the supplied value is one of the predefined options.
|
static Db2ConnectorConfig.SnapshotIsolationMode |
parse(String value,
String defaultValue)
Determine if the supplied value is one of the predefined options.
|
static Db2ConnectorConfig.SnapshotIsolationMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Db2ConnectorConfig.SnapshotIsolationMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Db2ConnectorConfig.SnapshotIsolationMode EXCLUSIVE
SELECT * FROM .. WITH (TABLOCKX)public static final Db2ConnectorConfig.SnapshotIsolationMode REPEATABLE_READ
public static final Db2ConnectorConfig.SnapshotIsolationMode READ_COMMITTED
public static final Db2ConnectorConfig.SnapshotIsolationMode READ_UNCOMMITTED
private final String value
public static Db2ConnectorConfig.SnapshotIsolationMode[] values()
for (Db2ConnectorConfig.SnapshotIsolationMode c : Db2ConnectorConfig.SnapshotIsolationMode.values()) System.out.println(c);
public static Db2ConnectorConfig.SnapshotIsolationMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getValue()
getValue in interface io.debezium.config.EnumeratedValuepublic static Db2ConnectorConfig.SnapshotIsolationMode parse(String value)
value - the configuration property value; may not be nullpublic static Db2ConnectorConfig.SnapshotIsolationMode parse(String value, String defaultValue)
value - the configuration property value; may not be nulldefaultValue - the default value; may be nullCopyright © 2021 JBoss by Red Hat. All rights reserved.