Class StartupOptions

    • Method Detail

      • initial

        public static StartupOptions initial()
        Performs an initial snapshot on the monitored database tables upon first startup, and continue to read the latest binlog.
      • snapshot

        public static StartupOptions snapshot()
        Performs an initial snapshot on the monitored database tables upon first startup, and not read the binlog anymore .
      • earliest

        public static StartupOptions earliest()
        Never to perform snapshot on the monitored database tables upon first startup, just read from the beginning of the binlog. This should be used with care, as it is only valid when the binlog is guaranteed to contain the entire history of the database.
      • latest

        public static StartupOptions latest()
        Never to perform snapshot on the monitored database tables upon first startup, just read from the end of the binlog which means only have the changes since the connector was started.
      • specificOffset

        public static StartupOptions specificOffset​(String specificOffsetFile,
                                                    long specificOffsetPos)
        Never to perform snapshot on the monitored database tables upon first startup, and directly read binlog from the specified offset.
      • timestamp

        public static StartupOptions timestamp​(long startupTimestampMillis)
        Never to perform snapshot on the monitored database tables upon first startup, and directly read binlog from the specified timestamp.

        The consumer will traverse the binlog from the beginning and ignore change events whose timestamp is smaller than the specified timestamp.

        Parameters:
        startupTimestampMillis - timestamp for the startup offsets, as milliseconds from epoch.
      • isStreamOnly

        public boolean isStreamOnly()
      • isSnapshotOnly

        public boolean isSnapshotOnly()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object