in alpha/alpha-spec-saga-akka/src/main/java/org/apache/servicecomb/pack/alpha/spec/saga/akka/repository/elasticsearch/ElasticsearchTransactionRepository.java [206:225]
public void run() {
while (true) {
try {
synchronized (lock) {
if (!queries.isEmpty()) {
save(System.currentTimeMillis());
}
}
} catch (Exception e) {
LOG.error(e.getMessage(), e);
} finally {
try {
Thread.sleep(refreshTime);
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
LOG.error(e.getMessage(), e);
}
}
}
}