Class MySqlConnectorConfig

    • Field Detail

      • LOGGER

        private static final org.slf4j.Logger LOGGER
      • TEST_DISABLE_GLOBAL_LOCKING

        static final String TEST_DISABLE_GLOBAL_LOCKING
        It is not possible to test disabled global locking locally as regular MySQL build always provides global locking. So to bypass this limitation it is necessary to provide a backdoor to connector to disable it on its own.
        See Also:
        Constant Field Values
      • DEFAULT_BINLOG_BUFFER_SIZE

        private static final int DEFAULT_BINLOG_BUFFER_SIZE
        Default size of the binlog buffer used for examining transactions and deciding whether to propagate them or not. A size of 0 disables the buffer, all events will be passed on directly as they are passed by the binlog client.
        See Also:
        Constant Field Values
      • PORT

        public static final Field PORT
      • ON_CONNECT_STATEMENTS

        public static final Field ON_CONNECT_STATEMENTS
      • SERVER_NAME

        public static final Field SERVER_NAME
      • SERVER_ID

        public static final Field SERVER_ID
      • SERVER_ID_OFFSET

        public static final Field SERVER_ID_OFFSET
      • SSL_MODE

        public static final Field SSL_MODE
      • SSL_KEYSTORE

        public static final Field SSL_KEYSTORE
      • SSL_KEYSTORE_PASSWORD

        public static final Field SSL_KEYSTORE_PASSWORD
      • SSL_TRUSTSTORE

        public static final Field SSL_TRUSTSTORE
      • SSL_TRUSTSTORE_PASSWORD

        public static final Field SSL_TRUSTSTORE_PASSWORD
      • TABLES_IGNORE_BUILTIN

        public static final Field TABLES_IGNORE_BUILTIN
      • JDBC_DRIVER

        public static final Field JDBC_DRIVER
      • GTID_SOURCE_INCLUDES

        public static final Field GTID_SOURCE_INCLUDES
        A comma-separated list of regular expressions that match source UUIDs in the GTID set used to find the binlog position in the MySQL server. Only the GTID ranges that have sources matching one of these include patterns will be used. Must not be used with GTID_SOURCE_EXCLUDES.
      • GTID_SOURCE_EXCLUDES

        public static final Field GTID_SOURCE_EXCLUDES
        A comma-separated list of regular expressions that match source UUIDs in the GTID set used to find the binlog position in the MySQL server. Only the GTID ranges that have sources matching none of these exclude patterns will be used. Must not be used with GTID_SOURCE_INCLUDES.
      • GTID_SOURCE_FILTER_DML_EVENTS

        public static final Field GTID_SOURCE_FILTER_DML_EVENTS
        If set to true, we will only produce DML events into Kafka for transactions that were written on MySQL servers with UUIDs matching the filters defined by the GTID_SOURCE_INCLUDES or GTID_SOURCE_EXCLUDES configuration options, if they are specified. Defaults to true. When true, either GTID_SOURCE_INCLUDES or GTID_SOURCE_EXCLUDES must be set.
      • GTID_NEW_CHANNEL_POSITION

        public static final Field GTID_NEW_CHANNEL_POSITION
        If set to 'latest', connector when encountering new GTID channel after job restart will start reading it from the latest executed position (default). When set to 'earliest' the connector will start reading new GTID channels from the first available position. This is useful when in active-passive mysql setup during failover new GTID channel starts receiving writes, see DBZ-923. Defaults to latest.
      • CONNECTION_TIMEOUT_MS

        public static final Field CONNECTION_TIMEOUT_MS
      • KEEP_ALIVE

        public static final Field KEEP_ALIVE
      • KEEP_ALIVE_INTERVAL_MS

        public static final Field KEEP_ALIVE_INTERVAL_MS
      • ROW_COUNT_FOR_STREAMING_RESULT_SETS

        public static final Field ROW_COUNT_FOR_STREAMING_RESULT_SETS
      • BUFFER_SIZE_FOR_BINLOG_READER

        public static final Field BUFFER_SIZE_FOR_BINLOG_READER
      • DATABASE_HISTORY

        public static final Field DATABASE_HISTORY
        The database history class is hidden in the configDef() since that is designed to work with a user interface, and in these situations using Kafka is the only way to go.
      • INCLUDE_SQL_QUERY

        public static final Field INCLUDE_SQL_QUERY
      • SNAPSHOT_MODE

        public static final Field SNAPSHOT_MODE
      • SNAPSHOT_LOCKING_MODE

        public static final Field SNAPSHOT_LOCKING_MODE
      • SNAPSHOT_NEW_TABLES

        public static final Field SNAPSHOT_NEW_TABLES
      • TIME_PRECISION_MODE

        public static final Field TIME_PRECISION_MODE
      • BIGINT_UNSIGNED_HANDLING_MODE

        public static final Field BIGINT_UNSIGNED_HANDLING_MODE
      • EVENT_DESERIALIZATION_FAILURE_HANDLING_MODE

        public static final Field EVENT_DESERIALIZATION_FAILURE_HANDLING_MODE
      • INCONSISTENT_SCHEMA_HANDLING_MODE

        public static final Field INCONSISTENT_SCHEMA_HANDLING_MODE
      • ENABLE_TIME_ADJUSTER

        public static final Field ENABLE_TIME_ADJUSTER
      • ALL_FIELDS

        public static Field.Set ALL_FIELDS
        The set of Fields defined as part of this configuration.
      • EXPOSED_FIELDS

        protected static Field.Set EXPOSED_FIELDS
      • BUILT_IN_DB_NAMES

        protected static final Set<String> BUILT_IN_DB_NAMES
      • connectionTimeout

        private final Duration connectionTimeout
      • legacy

        private final boolean legacy
    • Constructor Detail

      • MySqlConnectorConfig

        public MySqlConnectorConfig​(Configuration config)