Interface ListenerInfo

  • All Known Subinterfaces:
    LogRecordEmitter

    @Taxonomy(stability=UNCOMMITTED)
    public interface ListenerInfo
    Provide information about who's listening.
    • Method Detail

      • getNotificationTypeListenerCount

        int getNotificationTypeListenerCount​(String notificationType)
        Get the number of listeners which are listening for the specified type of Notification. If there are anonymous listeners (those that have no filter or a non-standard filter) then this routine will return the value 1.
        Parameters:
        notificationType - any Notification type, should usually be one advertised via MBeanInfo
        Returns:
        count of listeners
      • getListenerCount

        int getListenerCount()
        Get the total number of listeners listening for anything.
        Returns:
        count of listeners