Package com.caplin.streamlink
Interface ChannelListener
public interface ChannelListener
Interface for receiving updates on the channel from the Liberator.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onChannelData
(Channel channel, RecordType1Event evt) Called when an update is received.void
onChannelError
(Channel channel, SubscriptionErrorEvent evt) Called when there is an error on the channel.void
onChannelStatus
(Channel channel, SubscriptionStatusEvent evt) Called when there is a change in the status for the channel.
-
Method Details
-
onChannelData
Called when an update is received.
- Parameters:
channel
- The channel for which the update occurred.evt
- The record update.
-
onChannelStatus
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
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.
-