--- title: "Get Component Instance" url: https://docs.catalyst.zoho.com/en/sdk/java/v1/cloud-scale/data-streams/get-component-instance/ description: "This page describes the method to create an instance of the Data Streams component in your Java application with sample code snippets." last_updated: 2026-07-07T05:22:22Z service: Cloud Scale type: general related_links: - name: "Data Streams" url: /en/cloud-scale/help/data-streams/introduction --- # Get Component Instance [Catalyst Data Streams](https://docs.catalyst.zoho.com/en/cloud-scale/help/data-streams/introduction/) lets you publish live, event-based data through channels and deliver it instantly to subscribed clients. You can create an instance of the Data Streams component to access all channel-level operations such as listing channels, publishing data, and generating WebSocket tokens. You must first create a Data Streams instance using the `getInstance()` method to perform any Data Streams operations. #### Sample Code Snippet **Package Imports** ```java import com.zc.component.datastream.ZCDatastream; ``` ```java //Create a Data Streams instance ZCDatastream datastream = ZCDatastream.getInstance(); ```