public final class StartupOptions extends Object implements Serializable
| 限定符和类型 | 字段和说明 |
|---|---|
String |
specificOffsetFile |
Integer |
specificOffsetPos |
StartupMode |
startupMode |
Long |
startupTimestampMillis |
| 限定符和类型 | 方法和说明 |
|---|---|
static StartupOptions |
earliest()
Never to perform snapshot on the monitored database tables upon first startup, just read from
the beginning of the binlog.
|
boolean |
equals(Object o) |
int |
hashCode() |
static StartupOptions |
initial()
Performs an initial snapshot on the monitored database tables upon first startup, and
continue to read the latest binlog.
|
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.
|
static StartupOptions |
specificOffset(String specificOffsetFile,
int specificOffsetPos)
Never to perform snapshot on the monitored database tables upon first startup, and directly
read binlog from the specified offset.
|
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.
|
public final StartupMode startupMode
public final String specificOffsetFile
public final Integer specificOffsetPos
public final Long startupTimestampMillis
public static StartupOptions initial()
public static StartupOptions earliest()
public static StartupOptions latest()
public static StartupOptions specificOffset(String specificOffsetFile, int specificOffsetPos)
public static StartupOptions timestamp(long startupTimestampMillis)
The consumer will traverse the binlog from the beginning and ignore change events whose timestamp is smaller than the specified timestamp.
startupTimestampMillis - timestamp for the startup offsets, as milliseconds from epoch.Copyright © 2022 10MG. All rights reserved.