• Data Ingestion Service

dis
  1. Help Center
  2. Data Ingestion Service
  3. User Guide
  4. DIS SDK Usage Guide
  5. Uploading Real-Time Files
  6. Initializing a DIS SDK Asynchronous Client Instance

Initializing a DIS SDK Asynchronous Client Instance

Initialize a DIS SDK asynchronous client instance. For details about endpoint, ak, sk, region, and projectId, see Obtaining Authentication Information.
//Create a DIS client instance.
DISAsync dicAsync = DISClientAsyncBuilder.standard()
            .withEndpoint("https://ip:port")
            .withAk("xxxx")
            .withSk("xxxx")
            .withProjectId("xxxx")
            .withRegion("xxxx")
            .withExecutorFactory(new DefaultExecutorFactory())
            .build();