public static enum MySqlConnectorConfig.SnapshotLockingMode extends Enum<MySqlConnectorConfig.SnapshotLockingMode> implements EnumeratedValue
| Enum Constant and Description |
|---|
EXTENDED
This mode will block all writes for the entire duration of the snapshot.
|
MINIMAL
The connector holds the global read lock for just the initial portion of the snapshot while the connector reads the database
schemas and other metadata.
|
MINIMAL_PERCONA
The connector holds a (Percona-specific) backup lock for just the initial portion of the snapshot while the connector
reads the database schemas and other metadata.
|
NONE
This mode will avoid using ANY table locks during the snapshot process.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getLockStatement()
Determine which flavour of MySQL locking to use.
|
String |
getValue() |
static MySqlConnectorConfig.SnapshotLockingMode |
parse(String value)
Determine if the supplied value is one of the predefined options.
|
static MySqlConnectorConfig.SnapshotLockingMode |
parse(String value,
String defaultValue)
Determine if the supplied value is one of the predefined options.
|
boolean |
usesMinimalLocking() |
static MySqlConnectorConfig.SnapshotLockingMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MySqlConnectorConfig.SnapshotLockingMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MySqlConnectorConfig.SnapshotLockingMode EXTENDED
public static final MySqlConnectorConfig.SnapshotLockingMode MINIMAL
public static final MySqlConnectorConfig.SnapshotLockingMode MINIMAL_PERCONA
public static final MySqlConnectorConfig.SnapshotLockingMode NONE
private final String value
public static MySqlConnectorConfig.SnapshotLockingMode[] values()
for (MySqlConnectorConfig.SnapshotLockingMode c : MySqlConnectorConfig.SnapshotLockingMode.values()) System.out.println(c);
public static MySqlConnectorConfig.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 EnumeratedValuepublic boolean usesMinimalLocking()
public String getLockStatement()
public static MySqlConnectorConfig.SnapshotLockingMode parse(String value)
value - the configuration property value; may not be nullpublic static MySqlConnectorConfig.SnapshotLockingMode parse(String value, String defaultValue)
value - the configuration property value; may not be nulldefaultValue - the default value; may be nullCopyright © 2020 JBoss by Red Hat. All rights reserved.