public class FlinkOffsetBackingStore extends Object implements org.apache.kafka.connect.storage.OffsetBackingStore
OffsetBackingStore backed on Flink's state mechanism.
The OFFSET_STATE_VALUE in the WorkerConfig is the raw position and offset
data in JSON format. It is set into the config when recovery from failover by DebeziumSourceFunction before startup the DebeziumEngine. If it is not a restoration,
the OFFSET_STATE_VALUE is empty. DebeziumEngine relies on the OffsetBackingStore for failover recovery.
DebeziumSourceFunction| 限定符和类型 | 字段和说明 |
|---|---|
protected Map<ByteBuffer,ByteBuffer> |
data |
protected ExecutorService |
executor |
static int |
FLUSH_TIMEOUT_SECONDS |
static String |
OFFSET_STATE_VALUE |
| 构造器和说明 |
|---|
FlinkOffsetBackingStore() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
configure(org.apache.kafka.connect.runtime.WorkerConfig config) |
Future<Map<ByteBuffer,ByteBuffer>> |
get(Collection<ByteBuffer> keys) |
Future<Void> |
set(Map<ByteBuffer,ByteBuffer> values,
org.apache.kafka.connect.util.Callback<Void> callback) |
void |
start() |
void |
stop() |
public static final int FLUSH_TIMEOUT_SECONDS
protected Map<ByteBuffer,ByteBuffer> data
protected ExecutorService executor
public void configure(org.apache.kafka.connect.runtime.WorkerConfig config)
configure 在接口中 org.apache.kafka.connect.storage.OffsetBackingStorepublic void start()
start 在接口中 org.apache.kafka.connect.storage.OffsetBackingStorepublic void stop()
stop 在接口中 org.apache.kafka.connect.storage.OffsetBackingStorepublic Future<Map<ByteBuffer,ByteBuffer>> get(Collection<ByteBuffer> keys)
get 在接口中 org.apache.kafka.connect.storage.OffsetBackingStorepublic Future<Void> set(Map<ByteBuffer,ByteBuffer> values, org.apache.kafka.connect.util.Callback<Void> callback)
set 在接口中 org.apache.kafka.connect.storage.OffsetBackingStoreCopyright © 2025 The Apache Software Foundation. All rights reserved.