public class BinlogEventListener extends Object implements com.github.shyiko.mysql.binlog.BinaryLogClient.EventListener
| Modifier and Type | Field and Description |
|---|---|
private com.github.shyiko.mysql.binlog.BinaryLogClient |
client |
private static org.slf4j.Logger |
logger |
private BlockingQueue<RawBinlogEvent> |
queue |
private static int |
QUEUE_OFFER_TIMEOUT_MSEC |
private AtomicBoolean |
stopNow |
| Constructor and Description |
|---|
BinlogEventListener(com.github.shyiko.mysql.binlog.BinaryLogClient client,
BlockingQueue<RawBinlogEvent> q) |
| Modifier and Type | Method and Description |
|---|---|
void |
onEvent(com.github.shyiko.mysql.binlog.event.Event event) |
void |
start() |
void |
stop() |
private static final org.slf4j.Logger logger
private final AtomicBoolean stopNow
private static final int QUEUE_OFFER_TIMEOUT_MSEC
private final BlockingQueue<RawBinlogEvent> queue
private final com.github.shyiko.mysql.binlog.BinaryLogClient client
public BinlogEventListener(com.github.shyiko.mysql.binlog.BinaryLogClient client,
BlockingQueue<RawBinlogEvent> q)
Copyright © 2024 Apache NiFi Project. All rights reserved.