Updated ClientExample (markdown)

Lance7in
2016-09-27 16:22:37 +08:00
parent a1abce5ee3
commit 373ec39b99

@@ -63,8 +63,8 @@ public class SimpleCanalClientExample {
connector.connect();
connector.subscribe(".*\\..*");
connector.rollback();
int totalEmtryCount = 120;
while (emptyCount < totalEmtryCount) {
int totalEmptyCount = 120;
while (emptyCount < totalEmptyCount) {
Message message = connector.getWithoutAck(batchSize); // 获取指定数量的数据
long batchId = message.getId();
int size = message.getEntries().size();