public abstract class CanalAbstractSource<V> extends PushSource<V>
| Modifier and Type | Field and Description |
|---|---|
protected Thread.UncaughtExceptionHandler |
handler |
protected boolean |
running |
protected Thread |
thread |
| Constructor and Description |
|---|
CanalAbstractSource() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
abstract V |
extractValue(List<com.alibaba.otter.canal.protocol.FlatMessage> flatMessages) |
abstract Long |
getMessageId(com.alibaba.otter.canal.protocol.Message message) |
void |
open(Map<String,Object> config,
SourceContext sourceContext) |
protected void |
process() |
protected void |
start() |
consume, getQueueLength, readprotected Thread thread
protected volatile boolean running
protected final Thread.UncaughtExceptionHandler handler
public void open(Map<String,Object> config, SourceContext sourceContext) throws Exception
protected void start()
public void close()
throws InterruptedException
InterruptedExceptionprotected void process()
public abstract Long getMessageId(com.alibaba.otter.canal.protocol.Message message)
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.