Click or drag to resize

DomainParticipantFindTopic Method

Looks for an existing (or ready to exist) enabled Topic, based on its name.

Namespace:  OpenDDSharp.DDS
Assembly:  OpenDDSharp (in OpenDDSharp.dll) Version: 0.5.0.0
Syntax
public Topic FindTopic(
	string topicName,
	Duration timeout
)

Parameters

topicName
Type: SystemString
Name of the Topic to look for.
timeout
Type: OpenDDSharp.DDSDuration
The time to wait if the Topic doesn't exist already.

Return Value

Type: Topic
The Topic, if it exists, otherwise .
Remarks

If a Topic of the same name already exists, it gives access to it, otherwise it waits (blocks the caller) until another mechanism creates it (or the specified timeout occurs). This other mechanism can be another thread, a configuration tool, or some other middleware service. Note that the Topic is a local object that acts as a ‘proxy’ to designate the global concept of topic.

A Topic obtained by means of FindTopic(String, Duration), must also be deleted by means of DeleteTopic(Topic) so that the local resources can be released. If a Topic is obtained multiple times by means of FindTopic(String, Duration) or CreateTopic, it must also be deleted that same number of times using DeleteTopic(Topic).

See Also