@Override public void run() { try { dumpState(); } catch (Exception e) { LOGGER.error(String.format("Failed to take backup, with exception: %s", e)); return; } LOGGER.info("Backup taken successfully!"); } }, 20, _timeValue, _timeUnit);
@Override public void run() { try { dumpState(); } catch (Exception e) { LOGGER.error("Failed to take backup with exception", e); return; } LOGGER.info("Backup taken successfully!"); } }, 20, _timeValue, _timeUnit);