NotificationFilter (Java SE 17 & JDK 17)
Description: declaration: module: java.management, package: javax.management, interface: NotificationFilter
Keywords: javax.management.NotificationFilter interface

Module java.management
Package javax.management

# Interface NotificationFilter

All Superinterfaces:
  `Serializable`

All Known Implementing Classes:
  `AttributeChangeNotificationFilter`, `MBeanServerNotificationFilter`, `NotificationFilterSupport`

public interface NotificationFilter extends Serializable
To be implemented by a any class acting as a notification filter. It allows a registered notification listener to filter the notifications of interest.

Since:
  1.5

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `isNotificationEnabled(Notification notification)`
  Invoked before sending the specified notification to the listener.

- ## Method Details

  - ### isNotificationEnabled

    boolean isNotificationEnabled(Notification notification)
    Invoked before sending the specified notification to the listener.
    Parameters:
      `notification` - The notification to be sent.
    Returns:
      `true` if the notification has to be sent to the listener, `false` otherwise.