PulsarClient client = PulsarClient.builder()// Access address, which can be copied from **Access Address** in the **Operation** column on the **Cluster Management** page.serviceUrl("http://*")// Replace it with the role token displayed on the **Role Management** page.authentication(AuthenticationFactory.token("eyJh****")).build();
PulsarClient client = PulsarClient.builder()// Access address, which can be copied from the access point list in **Cluster Management**.serviceUrl("pulsar://*.*.*.*:6000/")// Replace it with the role token displayed on the **Role Management** page.authentication(AuthenticationFactory.token("eyJh****"))// Replace the value of `custom:` with the route ID in the access point list in **Cluster Management**.listenerName("custom:1********0/vpc-******/subnet-********").build();
client, err := NewClient(ClientOptions{// Access address, which can be copied from the access point list in **Cluster Management**URL: "http://*",// Replace it with the role token displayed on the **Role Management** pageAuthentication: NewAuthenticationToken("eyJh****"),})
client, err := NewClient(ClientOptions{// Access address, which can be copied from the access point list in **Cluster Management**URL: "pulsar://*.*.*.*:6000",// Replace it with the role token displayed on the **Role Management** pageAuthentication: NewAuthenticationToken("eyJh****"),// Replace the value of `custom:` with the route ID in the access point list in **Cluster Management**ListenerName: "custom:1300*****0/vpc-******/subnet-********",})
Feedback