Get Channels

Catalyst Data Streams allows you to retrieve information about channels created in your project. You can fetch a list of all channels or get detailed information about a specific channel.

Get All Channels

This method fetches the list of all Data Streams channels that are created in the project using the getAllChannels() method.

Sample Code Snippet


Package Imports
copy
import com.zc.component.datastream.ZCDatastream;
import com.zc.component.datastream.beans.ZCChannelDetails;
import java.util.List;
copy
//Create a Data Streams instance
ZCDatastream datastream = ZCDatastream.getInstance();
//Get all channels
List channels = datastream.getAllChannels();

Get Channel Details

This method retrieves the metadata and configuration details of a specific channel by passing the channel ID to the getChannelDetails() method.

Sample Code Snippet


Package Imports
copy
import com.zc.component.datastream.ZCDatastream;
import com.zc.component.datastream.beans.ZCChannelDetails;
copy
//Create a Data Streams instance
ZCDatastream datastream = ZCDatastream.getInstance();
//Get channel details by channel ID
ZCChannelDetails channelDetails = datastream.getChannelDetails("CHANNEL_ID");

Last Updated 2026-07-07 10:52:22 +0530 IST