Class AbstractEthosChangeNotificationListSubscriber

    • Constructor Detail

      • AbstractEthosChangeNotificationListSubscriber

        public AbstractEthosChangeNotificationListSubscriber()
        Enables subclasses to construct this class without specifying the number of notifications to retrieve from Ethos Integration at a single time.
      • AbstractEthosChangeNotificationListSubscriber

        public AbstractEthosChangeNotificationListSubscriber​(Integer numNotifications)
        Enables subclasses to construct this class with the specified number of notifications to retrieve from Ethos Integration at a single time (per polling request).
        Parameters:
        numNotifications - The number of notifications to retrieve from Ethos Integration per polling request.
    • Method Detail

      • onSubscribe

        public void onSubscribe​(Flow.Subscription subscription)
        Intended to be used internally by the SDK.

        Initiates the subscription process for this subscriber.

        Specified by:
        onSubscribe in interface Flow.Subscriber<List<ChangeNotification>>
        Parameters:
        subscription - The subscription to process, or request notifications for.
      • onChangeNotificationList

        public abstract void onChangeNotificationList​(List<ChangeNotification> changeNotificationList)
        This is the hook which client application code should implement when subclassing this class for processing entire lists of ChangeNotifications.
        Parameters:
        changeNotificationList - The list of ChangeNotifications to process.
      • onChangeNotificationListError

        public abstract void onChangeNotificationListError​(Throwable throwable)
        This is the hook which client application code should implement when subclassing this class for handling errors that occurred during onChangeNotificationList().
        Parameters:
        throwable - The exception thrown during the call to onChangeNotification().