NotificationListener
NotificationListener (알림 리스너 인터페이스)
알림을 받고자 하는 객체가 구현해야 하는 인터페이스예요. EventListener을 확장해요.
본문
NotificationListener는 단일 메서드 handleNotification(Notification notification, Object handback)을 정의해요. JMX 알림이 발생할 때 호출돼요. 이 메서드의 구현은 알림 브로드캐스터를 차단하지 않도록 가능한 한 빨리 반환해야 해요.
notification: 알림handback: 리스너가addNotificationListener에 등록할 때 제공한 handback 객체