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 java.io.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.
|
java.lang.String |
getName() |
DomainParticipant |
getParent() |
java.lang.String |
getTypeName() |
TypeSupport<TYPE> |
getTypeSupport() |
getEnvironment
TypeSupport<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.java.lang.ClassCastException
- if the cast failsjava.lang.String getTypeName()
java.lang.String getName()
DomainParticipant getParent()
DomainParticipant
to which the TopicDescription
belongs.void close()
DataWriter
s or DataReader
s. With respect to
Topic
s specifically: a Topic cannot be closed if it has any
remaining ContentFilteredTopic
s or MultiTopic
s related
to it.close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable
Entity.close()
Copyright © 2010 Real-Time Innovations, Inc. (RTI)
Copyright © 2010 PrismTech, Ltd.
Copyright © 2010 Object Management Group, Inc. (OMG)
All Rights Reserved.