@ Override public void onNext ( final String alarmId ) { LOG . log ( Level . INFO , "Alarm {0} triggered" , alarmId ) ; final ClientAlarm clientAlarm = this . alarmMap . remove ( alarmId ) ; if ( clientAlarm != null ) { clientAlarm . run ( ) ; } else { LOG . log ( Level . SEVERE , "Unknown alarm id {0}" , alarmId ) ; } }
Alarm clock event handler .