Skip to content

Commit

Permalink
(fix) lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
fengjiachun committed Jul 21, 2019
1 parent da0bbee commit 3367394
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,8 @@ private String getCheckpointFileName(final Checkpoint checkpoint) {
private void startCheckpointTask() {
this.checkpointExecutor = Executors
.newSingleThreadScheduledExecutor(new NamedThreadFactory(getServiceName() + "-Checkpoint-Thread-", true));
this.checkpointExecutor.scheduleAtFixedRate(() -> {
doCheckpoint();
}, DEFAULT_CHECKPOINT_INTERVAL_MS, DEFAULT_CHECKPOINT_INTERVAL_MS, TimeUnit.MILLISECONDS);
this.checkpointExecutor.scheduleAtFixedRate(this::doCheckpoint,
DEFAULT_CHECKPOINT_INTERVAL_MS, DEFAULT_CHECKPOINT_INTERVAL_MS, TimeUnit.MILLISECONDS);
LOG.info("{} started checkpoint task.", getServiceName());
}

Expand Down

0 comments on commit 3367394

Please sign in to comment.