Interface JsonChannelListener


  • public interface JsonChannelListener

    Interface for receiving updates on the JSON channel from the Liberator.

    • Method Detail

      • onChannelData

        void onChannelData​(JsonChannel channel,
                           JsonEvent evt)

        Called when an update is received.

        Parameters:
        channel - The channel for which the update occurred.
        evt - The json update.
      • onChannelStatus

        void onChannelStatus​(JsonChannel channel,
                             SubscriptionStatusEvent evt)

        Called when there is a change in the status for the channel.

        Parameters:
        channel - The channel for which the update occurred.
        evt - The status event.
      • onChannelError

        void onChannelError​(JsonChannel channel,
                            SubscriptionErrorEvent evt)

        Called when there is an error on the channel.

        This callback being invoked is a final state for the channel and no further callbacks will be received for it.

        Parameters:
        channel - The channel for which the error occurred.
        evt - The error event.