mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
@@ -388,7 +388,10 @@ public abstract class AbstractEventParser<EVENT> extends AbstractCanalLifeCycle
|
|||||||
String name = String.format("destination = %s , address = %s , HeartBeatTimeTask",
|
String name = String.format("destination = %s , address = %s , HeartBeatTimeTask",
|
||||||
destination,
|
destination,
|
||||||
runningInfo == null ? null : runningInfo.getAddress().toString());
|
runningInfo == null ? null : runningInfo.getAddress().toString());
|
||||||
synchronized (MysqlEventParser.class) {
|
synchronized(AbstractEventParser.class){
|
||||||
|
// synchronized (MysqlEventParser.class) {
|
||||||
|
// why use MysqlEventParser.class, u know, MysqlEventParser is the child class 4 AbstractEventParser,
|
||||||
|
// do this is ...
|
||||||
if (timer == null) {
|
if (timer == null) {
|
||||||
timer = new Timer(name, true);
|
timer = new Timer(name, true);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user