Skip to content

Instantly share code, notes, and snippets.

@sandorkan
Created November 6, 2012 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sandorkan/4025420 to your computer and use it in GitHub Desktop.
Save sandorkan/4025420 to your computer and use it in GitHub Desktop.
Creation of the Topic for HelloPublisher
// Create the topic "Hello World" with the built-in String type
Topic helloWorldTopic = participant.create_topic(
"Hello, World", //topic_name
StringTypeSupport.get_type_name(), //type_name
DomainParticipant.TOPIC_QOS_DEFAULT, //QoS
null, //listener
StatusKind.STATUS_MASK_NONE); //mask
if (topic == null) {
System.err.println("Unable to create topic.");
return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment