Skip to content

Instantly share code, notes, and snippets.

@beders
Created May 10, 2017 00:51
Show Gist options
  • Save beders/00f4a5a606d92dfc1446985f55dfb179 to your computer and use it in GitHub Desktop.
Save beders/00f4a5a606d92dfc1446985f55dfb179 to your computer and use it in GitHub Desktop.
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