Skip to main content
Next, create the Java consumer application by pasting the following code into a file src/main/java/io/streamnative/developer/ConsumerExample.java.
Fill in the appropriate <BOOTSTRAP SERVERS> endpoint and <API KEY> in the BOOTSTRAP_SERVERS_CONFIG and SASL_JAAS_CONFIG properties where the client configuration props object is created. Once again, you can compile the code before preceding by with:
And you should see the following output: