MongoCursor<ChangeStreamDocument<Document>> cursor = null;
MongoCollection<Document> collection = originMongoDao.getMongoCollection();
BsonDocument resumeToken = targetMongoDao.getResumeToken();
if (resumeToken != null){
cursor = collection.watch().resumeAfter(resumeToken).fullDocument(FullDocument.UPDATE_LOOKUP).iterator();
}else {
cursor = collection.watch().fullDocument(FullDocument.UPDATE_LOOKUP).iterator();
}
long time1 = 0l;
long time2 = 0l;
int insert = 0;
int update = 0;
int delete = 0;
int others = 0;
AtomicInteger count = new AtomicInteger(0);
while (cursor.hasNext()){
ChangeStreamDocument<Document> stream = curs