+ log.error("Failed to process alarms. Sleep for 60 seconds to restart.", e);
+ try {
+ Thread.sleep(60000);
+ } catch (InterruptedException e1) {
+ log.info("Thread is still active.", e);
+ Thread.currentThread().interrupt();
+ }
+ } catch (Exception e) {
+ log.error("An error occurred while processing alarm. Sleep for 60 seconds to restart.", e);
+ try {
+ Thread.sleep(60000);
+ } catch (InterruptedException e1) {
+ log.info("Thread is still active.", e);
+ Thread.currentThread().interrupt();
+ }