Package io.debezium.connector.postgresql
Enum PostgresConnectorConfig.SnapshotLockingMode
java.lang.Object
java.lang.Enum<PostgresConnectorConfig.SnapshotLockingMode>
io.debezium.connector.postgresql.PostgresConnectorConfig.SnapshotLockingMode
- All Implemented Interfaces:
EnumeratedValue,Serializable,Comparable<PostgresConnectorConfig.SnapshotLockingMode>
- Enclosing class:
PostgresConnectorConfig
public static enum PostgresConnectorConfig.SnapshotLockingMode
extends Enum<PostgresConnectorConfig.SnapshotLockingMode>
implements EnumeratedValue
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis mode will avoid using ANY table locks during the snapshot process.This mode will lock in ACCESS SHARE MODE to avoid concurrent schema changes during the snapshot, and this does not prevent writes to the table, but prevents changes to the table's schema. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Determine if the supplied value is one of the predefined options.Determine if the supplied value is one of the predefined options.Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SHARED
This mode will lock in ACCESS SHARE MODE to avoid concurrent schema changes during the snapshot, and this does not prevent writes to the table, but prevents changes to the table's schema. -
NONE
This mode will avoid using ANY table locks during the snapshot process. This mode should be used carefully only when no schema changes are to occur. -
CUSTOM
-
-
Field Details
-
value
-
-
Constructor Details
-
SnapshotLockingMode
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
- Specified by:
getValuein interfaceEnumeratedValue
-
parse
Determine if the supplied value is one of the predefined options.- Parameters:
value- the configuration property value; may not benull- Returns:
- the matching option, or null if no match is found
-
parse
Determine if the supplied value is one of the predefined options.- Parameters:
value- the configuration property value; may not benulldefaultValue- the default value; may benull- Returns:
- the matching option, or null if no match is found and the non-null default is invalid
-