TYPE - The concrete type of the data that will be published and/
or subscribed by the readers and writers that use this
topic description.public interface TopicDescription<TYPE> extends Closeable, DDSObject
Topic, ContentFilteredTopic,
and MultiTopic.
TopicDescription represents the fact that both publications and
subscriptions are tied to a single data type. Its attribute typeName
defines a unique resulting type for the publication or the subscription
and therefore creates an implicit association with a TypeSupport.
TopicDescription has also a name that allows it to be retrieved locally.| Modifier and Type | Method and Description |
|---|---|
<OTHER> TopicDescription<OTHER> |
cast()
Cast this topic description to the given type, or throw an exception if
the cast fails.
|
void |
close()
Dispose the resources held by this object.
|
String |
getName() |
DomainParticipant |
getParent() |
String |
getTypeName() |
TypeSupport<TYPE> |
getTypeSupport() |
getEnvironmentTypeSupport<TYPE> getTypeSupport()
TypeSupport used to create this TopicDescription.<OTHER> TopicDescription<OTHER> cast()
OTHER - The type of the data exchanged on this topic,
according to the caller.ClassCastException - if the cast failsString getTypeName()
String getName()
DomainParticipant getParent()
DomainParticipant to which the TopicDescription
belongs.void close()
DataWriters or DataReaders. With respect to
Topics specifically: a Topic cannot be closed if it has any
remaining ContentFilteredTopics or MultiTopics related
to it.close in interface AutoCloseableclose in interface CloseableEntity.close()Copyright © 2014. All rights reserved.