Package com.caplin.streamlink
Interface JsonChannelListener
public interface JsonChannelListener
Interface for receiving updates on the JSON channel from the Liberator.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onChannelData
(JsonChannel channel, JsonEvent evt) Called when an update is received.void
onChannelError
(JsonChannel channel, SubscriptionErrorEvent evt) Called when there is an error on the channel.void
onChannelStatus
(JsonChannel 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 json 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.
-