Skip to content

Instantly share code, notes, and snippets.

Created May 10, 2017 00:51
What would you like to do?
Alternative Pubsub API design
// TODO add imports
public class QuickstartSample {
public static void main(String... args) throws Exception {
Topic t = TopicAdmin.getDefault().createTopic("my-new-topic");
System.out.printf("Topic %s:%s created.\n", topic.getProject(), topic.getName());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment