Class AttributeSubscriptionAdapter<T>

    • Constructor Detail

      • AttributeSubscriptionAdapter

        public AttributeSubscriptionAdapter()
    • Method Detail

      • onSubscribed

        public void onSubscribed​(String subscriptionId)
        Description copied from interface: SubscriptionListener
        Gets called when the subscription is successfully registered at the provider. Since the onSubscribed callback is called by a communication middleware thread, it should not be blocked, wait for user interaction, or do larger computation.
        Specified by:
        onSubscribed in interface SubscriptionListener
        Parameters:
        subscriptionId - the subscription id of the subscription as string
      • onReceive

        public void onReceive​(T value)
        Description copied from interface: AttributeSubscriptionListener
        Gets called on every received publication Since the onReceive callback is called by a communication middleware thread, it should not be blocked, wait for user interaction, or do larger computation.
        Specified by:
        onReceive in interface AttributeSubscriptionListener<T>
        Parameters:
        value - associated with the subscription this listener is listening to
      • onError

        public void onError​(JoynrRuntimeException error)
        Description copied from interface: AttributeSubscriptionListener
        Gets called on every error that is detected on the subscription. Since the onError callback is called by a communication middleware thread, it should not be blocked, wait for user interaction, or do larger computation.
        Specified by:
        onError in interface AttributeSubscriptionListener<T>
        Parameters:
        error - JoynrRuntimeException describing the error