Class AbstractEthosChangeNotificationSubscriber

    • Constructor Detail

      • AbstractEthosChangeNotificationSubscriber

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

        public AbstractEthosChangeNotificationSubscriber​(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<ChangeNotification>
        Parameters:
        subscription - The subscription to process, or request notifications for.
      • onComplete

        public void onComplete()
        Intended to be used internally by the SDK.

        Called by the subscriber when a given polling operation is complete.

        Specified by:
        onComplete in interface Flow.Subscriber<ChangeNotification>
      • onChangeNotification

        public abstract void onChangeNotification​(ChangeNotification changeNotification)
        This is the hook which client application code should implement when subclassing this class for processing ChangeNotifications.
        Parameters:
        changeNotification - The ChangeNotification to process.
      • onChangeNotificationError

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