Class UnsolicitedNotifications


  • public class UnsolicitedNotifications
    extends Object
    Adds and removes unsolicited notification listeners to provider connections.
    • Field Detail

      • connection

        private final Connection connection
        Connection to configure unsolicited notifications on.
    • Constructor Detail

      • UnsolicitedNotifications

        public UnsolicitedNotifications​(Connection conn)
        Creates a new unsolicited notifications.
        Parameters:
        conn - connection
    • Method Detail

      • addListener

        public void addListener​(UnsolicitedNotificationListener listener)
        Adds a listener to receive unsolicited notifications.
        Parameters:
        listener - to receive unsolicited notifications
      • removeListener

        public void removeListener​(UnsolicitedNotificationListener listener)
        Removes a listener from receiving unsolicited notifications.
        Parameters:
        listener - to no longer receive unsolicited notifications