Interface AttributeSubscriptionListener<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onError​(JoynrRuntimeException error)
      Gets called on every error that is detected on the subscription.
      void onReceive​(T value)
      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.
    • Method Detail

      • onReceive

        void onReceive​(T value)
        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.
        Parameters:
        value - associated with the subscription this listener is listening to
      • onError

        void onError​(JoynrRuntimeException error)
        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.
        Parameters:
        error - JoynrRuntimeException describing the error