接口 NotificationPublisher

所有已知实现类:
ModelMBeanNotificationPublisher
函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface public interface NotificationPublisher
Simple interface allowing Framework-managed MBeans to publish JMX notifications without being aware of how those notifications are being transmitted to the MBeanServer.

Managed resources can access a NotificationPublisher by implementing the NotificationPublisherAware interface. After a particular managed resource instance is registered with the MBeanServer, Framework will inject a NotificationPublisher instance into it if that resource implements the NotificationPublisherAware interface.

Each managed resource instance will have a distinct instance of a NotificationPublisher implementation. This instance will keep track of all the NotificationListeners registered for a particular mananaged resource.

Any existing, user-defined MBeans should use standard JMX APIs for notification publication; this interface is intended for use only by Framework-created MBeans.

从以下版本开始:
4.0
作者:
Rob Harrop
另请参阅: