Skip to content

Instantly share code, notes, and snippets.

@ftrossbach
Created December 1, 2017 18:42
Show Gist options
  • Save ftrossbach/3e3689f61e2c1fb2508eefa0c8536935 to your computer and use it in GitHub Desktop.
Save ftrossbach/3e3689f61e2c1fb2508eefa0c8536935 to your computer and use it in GitHub Desktop.
Properties props = new Properties();
props.put(AdminClientConfig.BOOTSTRAP_SERVERS_CONFIG, bootstrapServer);
AdminClient adminClient = AdminClient.create(props);
DescribeTopicsResult describeTopicsResult = adminClient.describeTopics(Collections.singleton(“topic-name”));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment