public static enum MySqlConnectorConfig.GtidNewChannelPosition extends Enum<MySqlConnectorConfig.GtidNewChannelPosition> implements EnumeratedValue
| Enum Constant and Description |
|---|
EARLIEST
This mode will start reading new gtid channel from earliest available position in server.
|
LATEST
This mode will start reading new gtid channel from mysql servers last_executed position
|
| Modifier and Type | Method and Description |
|---|---|
String |
getValue() |
static MySqlConnectorConfig.GtidNewChannelPosition |
parse(String value)
Determine if the supplied value is one of the predefined options.
|
static MySqlConnectorConfig.GtidNewChannelPosition |
parse(String value,
String defaultValue)
Determine if the supplied value is one of the predefined options.
|
static MySqlConnectorConfig.GtidNewChannelPosition |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MySqlConnectorConfig.GtidNewChannelPosition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MySqlConnectorConfig.GtidNewChannelPosition LATEST
public static final MySqlConnectorConfig.GtidNewChannelPosition EARLIEST
private final String value
public static MySqlConnectorConfig.GtidNewChannelPosition[] values()
for (MySqlConnectorConfig.GtidNewChannelPosition c : MySqlConnectorConfig.GtidNewChannelPosition.values()) System.out.println(c);
public static MySqlConnectorConfig.GtidNewChannelPosition 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 static MySqlConnectorConfig.GtidNewChannelPosition parse(String value)
value - the configuration property value; may not be nullpublic static MySqlConnectorConfig.GtidNewChannelPosition 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.