public void sendUsageNotification ( long value , long seqno , String usageParameterSetName , String usageParameterName , boolean isCounter ) { UsageNotificationManagerMBeanImpl notificationManager = parent . getUsageNotificationManagerMBean ( notificationSource ) ; if ( notificationManager == null || notificationManager . getNotificationsEnabled ( usageParameterName ) ) { // if the notification manager is null we consider the notification // can be sent UsageNotification notification = createUsageNotification ( value , seqno , usageParameterSetName , usageParameterName , isCounter ) ; for ( ListenerFilterHandbackTriplet triplet : listeners . values ( ) ) { if ( triplet . notificationFilter == null || triplet . notificationFilter . isNotificationEnabled ( notification ) ) { triplet . notificationListener . handleNotification ( notification , triplet . handbackObject ) ; } } } }
Send the notification .