public static enum SqlServerConnectorConfig.SnapshotLockingMode extends Enum<SqlServerConnectorConfig.SnapshotLockingMode> 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.
|
NONE
This mode will avoid using ANY table locks during the snapshot process.
|
SNAPSHOT
This mode uses SNAPSHOT isolation level.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getValue() |
static SqlServerConnectorConfig.SnapshotLockingMode |
parse(String value)
Determine if the supplied value is one of the predefined options.
|
static SqlServerConnectorConfig.SnapshotLockingMode |
parse(String value,
String defaultValue)
Determine if the supplied value is one of the predefined options.
|
static SqlServerConnectorConfig.SnapshotLockingMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SqlServerConnectorConfig.SnapshotLockingMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SqlServerConnectorConfig.SnapshotLockingMode EXCLUSIVE
SELECT * FROM .. WITH (TABLOCKX)public static final SqlServerConnectorConfig.SnapshotLockingMode SNAPSHOT
public static final SqlServerConnectorConfig.SnapshotLockingMode NONE
private final String value
public static SqlServerConnectorConfig.SnapshotLockingMode[] values()
for (SqlServerConnectorConfig.SnapshotLockingMode c : SqlServerConnectorConfig.SnapshotLockingMode.values()) System.out.println(c);
public static SqlServerConnectorConfig.SnapshotLockingMode 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 SqlServerConnectorConfig.SnapshotLockingMode parse(String value)
value - the configuration property value; may not be nullpublic static SqlServerConnectorConfig.SnapshotLockingMode parse(String value, String defaultValue)
value - the configuration property value; may not be nulldefaultValue - the default value; may be nullCopyright © 2018 JBoss by Red Hat. All rights reserved.