Interface ChannelListener


public interface ChannelListener

Interface for receiving updates on the channel from the Liberator.

  • Method Details

    • onChannelData

      void onChannelData(Channel channel, RecordType1Event evt)

      Called when an update is received.

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

      void onChannelStatus(Channel 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(Channel 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.