public void uncaughtException(Thread t, Throwable e) {
logger.error("Expection from checkpointing thread", e);
}
}).setNameFormat("Checkpointing-trigger-" + getClass().getSimpleName()).build();
checkpointingTimer = Executors.newSingleThreadScheduledExecutor(threadFactory);
checkpointingTimer.scheduleAtFixedRate(new CheckpointingTask(this), checkpointingConfig.frequency,
checkpointingConfig.frequency, checkpointingConfig.timeUnit);
logger.debug(
"Started checkpointing timer for PE prototype [{}], ID [{}] with interval [{}] [{}].",
new String[] { this.getClass().getName(), id, String.valueOf(checkpointingConfig.frequency),
String.valueOf(checkpointingConfig.timeUnit.toString()) });