RTI Connext C# API Version 7.2.0
Rti.Dds.Topics.TopicQos Class Reference

QoS policies supported by a Topic<T>. More...

Inherits IEquatable< TopicQos >.

Public Member Functions

TopicQos WithTopicData (TopicData policy)
 Creates an instance with a new TopicData policy. More...
 
TopicQos WithTopicData (Action< ImmutableList< byte >.Builder > build)
 Creates a new instance with a new TopicData policy as configured by a build action More...
 
TopicQos WithDurability (Durability policy)
 Creates an instance with a new Durability policy. More...
 
TopicQos WithDurability (Action< DurabilityBuilder > build)
 Creates a new instance with a new Durability policy as configured by a build action More...
 
TopicQos WithDurabilityService (DurabilityService policy)
 Creates an instance with a new DurabilityService policy. More...
 
TopicQos WithDurabilityService (Action< DurabilityServiceBuilder > build)
 Creates a new instance with a new DurabilityService policy as configured by a build action More...
 
TopicQos WithDeadline (Deadline policy)
 Creates an instance with a new Deadline policy. More...
 
TopicQos WithDeadline (Action< DeadlineBuilder > build)
 Creates a new instance with a new Deadline policy as configured by a build action More...
 
TopicQos WithLatencyBudget (LatencyBudget policy)
 Creates an instance with a new LatencyBudget policy. More...
 
TopicQos WithLatencyBudget (Action< LatencyBudgetBuilder > build)
 Creates a new instance with a new LatencyBudget policy as configured by a build action More...
 
TopicQos WithLiveliness (Liveliness policy)
 Creates an instance with a new Liveliness policy. More...
 
TopicQos WithLiveliness (Action< LivelinessBuilder > build)
 Creates a new instance with a new Liveliness policy as configured by a build action More...
 
TopicQos WithReliability (Reliability policy)
 Creates an instance with a new Reliability policy. More...
 
TopicQos WithReliability (Action< ReliabilityBuilder > build)
 Creates a new instance with a new Reliability policy as configured by a build action More...
 
TopicQos WithDestinationOrder (DestinationOrder policy)
 Creates an instance with a new DestinationOrder policy. More...
 
TopicQos WithDestinationOrder (Action< DestinationOrderBuilder > build)
 Creates a new instance with a new DestinationOrder policy as configured by a build action More...
 
TopicQos WithHistory (History policy)
 Creates an instance with a new History policy. More...
 
TopicQos WithHistory (Action< HistoryBuilder > build)
 Creates a new instance with a new History policy as configured by a build action More...
 
TopicQos WithResourceLimits (ResourceLimits policy)
 Creates an instance with a new ResourceLimits policy. More...
 
TopicQos WithResourceLimits (Action< ResourceLimitsBuilder > build)
 Creates a new instance with a new ResourceLimits policy as configured by a build action More...
 
TopicQos WithTransportPriority (TransportPriority policy)
 Creates an instance with a new TransportPriority policy. More...
 
TopicQos WithTransportPriority (Action< TransportPriorityBuilder > build)
 Creates a new instance with a new TransportPriority policy as configured by a build action More...
 
TopicQos WithLifespan (Lifespan policy)
 Creates an instance with a new Lifespan policy. More...
 
TopicQos WithLifespan (Action< LifespanBuilder > build)
 Creates a new instance with a new Lifespan policy as configured by a build action More...
 
TopicQos WithOwnership (Ownership policy)
 Creates an instance with a new Ownership policy. More...
 
TopicQos WithOwnership (Action< OwnershipBuilder > build)
 Creates a new instance with a new Ownership policy as configured by a build action More...
 
TopicQos WithRepresentation (DataRepresentation policy)
 Creates an instance with a new DataRepresentation policy. More...
 
TopicQos WithRepresentation (Action< DataRepresentationBuilder > build)
 Creates a new instance with a new DataRepresentation policy as configured by a build action More...
 
DataWriterQos ToDataWriterQos ()
 Creates a DataWriterQos object with the policies of this TopicQos. More...
 
DataReaderQos ToDataReaderQos ()
 Creates a DataReaderQos object with the policies of this TopicQos. More...
 
bool Equals (TopicQos other)
 Compares all the policies for equality More...
 
override int GetHashCode ()
 Returns the hash code by combining that of each policy More...
 
override bool Equals (object obj)
 Compares all the policies for equality More...
 
override string ToString ()
 Returns an XML representation of the QoS object. More...
 
string ToString (QosPrintFormat format)
 Returns an XML representation of the QoS object. More...
 
string ToString (TopicQos baseQos, QosPrintFormat format=null)
 Returns an XML representation of the QoS object. More...
 
string ToString (QosPrintAll baseQos, QosPrintFormat format=null)
 Returns an XML representation of the QoS object. More...
 

Properties

static TopicQos Default = new TopicQos() [get]
 Singleton containing the documented default value of a TopicQos More...
 
TopicData TopicData [get]
 Gets the TopicData policy. More...
 
Durability Durability [get]
 Gets the Durability policy. More...
 
DurabilityService DurabilityService [get]
 Gets the DurabilityService policy. More...
 
Deadline Deadline [get]
 Gets the Deadline policy. More...
 
LatencyBudget LatencyBudget [get]
 Gets the LatencyBudget policy. More...
 
Liveliness Liveliness [get]
 Gets the Liveliness policy. More...
 
Reliability Reliability [get]
 Gets the Reliability policy. More...
 
DestinationOrder DestinationOrder [get]
 Gets the DestinationOrder policy. More...
 
History History [get]
 Gets the History policy. More...
 
ResourceLimits ResourceLimits [get]
 Gets the ResourceLimits policy. More...
 
TransportPriority TransportPriority [get]
 Gets the TransportPriority policy. More...
 
Lifespan Lifespan [get]
 Gets the Lifespan policy. More...
 
Ownership Ownership [get]
 Gets the Ownership policy. More...
 
DataRepresentation Representation [get]
 Gets the DataRepresentation policy. More...
 

Detailed Description

QoS policies supported by a Topic<T>.

The full documentation is available in the C API: DDS_TopicQos

Member Function Documentation

◆ WithTopicData() [1/2]

TopicQos Rti.Dds.Topics.TopicQos.WithTopicData ( TopicData  policy)
inline

Creates an instance with a new TopicData policy.

Parameters
policyThe new policy
Returns
A new instance with the same policies as the current instance, except for the one being set

◆ WithTopicData() [2/2]

TopicQos Rti.Dds.Topics.TopicQos.WithTopicData ( Action< ImmutableList< byte >.Builder >  build)

Creates a new instance with a new TopicData policy as configured by a build action

Parameters
buildA function receiving the current values of the policy as an argument. The changes performed by this build function will be used to create the new policy.
Returns
A new instance with the sames policies as the current instance, except for the policy being modified

◆ WithDurability() [1/2]

TopicQos Rti.Dds.Topics.TopicQos.WithDurability ( Durability  policy)
inline

Creates an instance with a new Durability policy.

Parameters
policyThe new policy
Returns
A new instance with the same policies as the current instance, except for the one being set

◆ WithDurability() [2/2]

TopicQos Rti.Dds.Topics.TopicQos.WithDurability ( Action< DurabilityBuilder build)

Creates a new instance with a new Durability policy as configured by a build action

Parameters
buildA function receiving the current values of the policy as an argument. The changes performed by this build function will be used to create the new policy.
Returns
A new instance with the sames policies as the current instance, except for the policy being modified

◆ WithDurabilityService() [1/2]

TopicQos Rti.Dds.Topics.TopicQos.WithDurabilityService ( DurabilityService  policy)
inline

Creates an instance with a new DurabilityService policy.

Parameters
policyThe new policy
Returns
A new instance with the same policies as the current instance, except for the one being set

◆ WithDurabilityService() [2/2]

TopicQos Rti.Dds.Topics.TopicQos.WithDurabilityService ( Action< DurabilityServiceBuilder build)

Creates a new instance with a new DurabilityService policy as configured by a build action

Parameters
buildA function receiving the current values of the policy as an argument. The changes performed by this build function will be used to create the new policy.
Returns
A new instance with the sames policies as the current instance, except for the policy being modified

◆ WithDeadline() [1/2]

TopicQos Rti.Dds.Topics.TopicQos.WithDeadline ( Deadline  policy)
inline

Creates an instance with a new Deadline policy.

Parameters
policyThe new policy
Returns
A new instance with the same policies as the current instance, except for the one being set

◆ WithDeadline() [2/2]

TopicQos Rti.Dds.Topics.TopicQos.WithDeadline ( Action< DeadlineBuilder build)

Creates a new instance with a new Deadline policy as configured by a build action

Parameters
buildA function receiving the current values of the policy as an argument. The changes performed by this build function will be used to create the new policy.
Returns
A new instance with the sames policies as the current instance, except for the policy being modified

◆ WithLatencyBudget() [1/2]

TopicQos Rti.Dds.Topics.TopicQos.WithLatencyBudget ( LatencyBudget  policy)
inline

Creates an instance with a new LatencyBudget policy.

Parameters
policyThe new policy
Returns
A new instance with the same policies as the current instance, except for the one being set

◆ WithLatencyBudget() [2/2]

TopicQos Rti.Dds.Topics.TopicQos.WithLatencyBudget ( Action< LatencyBudgetBuilder build)

Creates a new instance with a new LatencyBudget policy as configured by a build action

Parameters
buildA function receiving the current values of the policy as an argument. The changes performed by this build function will be used to create the new policy.
Returns
A new instance with the sames policies as the current instance, except for the policy being modified

◆ WithLiveliness() [1/2]

TopicQos Rti.Dds.Topics.TopicQos.WithLiveliness ( Liveliness  policy)
inline

Creates an instance with a new Liveliness policy.

Parameters
policyThe new policy
Returns
A new instance with the same policies as the current instance, except for the one being set

◆ WithLiveliness() [2/2]

TopicQos Rti.Dds.Topics.TopicQos.WithLiveliness ( Action< LivelinessBuilder build)

Creates a new instance with a new Liveliness policy as configured by a build action

Parameters
buildA function receiving the current values of the policy as an argument. The changes performed by this build function will be used to create the new policy.
Returns
A new instance with the sames policies as the current instance, except for the policy being modified

◆ WithReliability() [1/2]

TopicQos Rti.Dds.Topics.TopicQos.WithReliability ( Reliability  policy)
inline

Creates an instance with a new Reliability policy.

Parameters
policyThe new policy
Returns
A new instance with the same policies as the current instance, except for the one being set

◆ WithReliability() [2/2]

TopicQos Rti.Dds.Topics.TopicQos.WithReliability ( Action< ReliabilityBuilder build)

Creates a new instance with a new Reliability policy as configured by a build action

Parameters
buildA function receiving the current values of the policy as an argument. The changes performed by this build function will be used to create the new policy.
Returns
A new instance with the sames policies as the current instance, except for the policy being modified

◆ WithDestinationOrder() [1/2]

TopicQos Rti.Dds.Topics.TopicQos.WithDestinationOrder ( DestinationOrder  policy)
inline

Creates an instance with a new DestinationOrder policy.

Parameters
policyThe new policy
Returns
A new instance with the same policies as the current instance, except for the one being set

◆ WithDestinationOrder() [2/2]

TopicQos Rti.Dds.Topics.TopicQos.WithDestinationOrder ( Action< DestinationOrderBuilder build)

Creates a new instance with a new DestinationOrder policy as configured by a build action

Parameters
buildA function receiving the current values of the policy as an argument. The changes performed by this build function will be used to create the new policy.
Returns
A new instance with the sames policies as the current instance, except for the policy being modified

◆ WithHistory() [1/2]

TopicQos Rti.Dds.Topics.TopicQos.WithHistory ( History  policy)
inline

Creates an instance with a new History policy.

Parameters
policyThe new policy
Returns
A new instance with the same policies as the current instance, except for the one being set

◆ WithHistory() [2/2]

TopicQos Rti.Dds.Topics.TopicQos.WithHistory ( Action< HistoryBuilder build)

Creates a new instance with a new History policy as configured by a build action

Parameters
buildA function receiving the current values of the policy as an argument. The changes performed by this build function will be used to create the new policy.
Returns
A new instance with the sames policies as the current instance, except for the policy being modified

◆ WithResourceLimits() [1/2]

TopicQos Rti.Dds.Topics.TopicQos.WithResourceLimits ( ResourceLimits  policy)
inline

Creates an instance with a new ResourceLimits policy.

Parameters
policyThe new policy
Returns
A new instance with the same policies as the current instance, except for the one being set

◆ WithResourceLimits() [2/2]

TopicQos Rti.Dds.Topics.TopicQos.WithResourceLimits ( Action< ResourceLimitsBuilder build)

Creates a new instance with a new ResourceLimits policy as configured by a build action

Parameters
buildA function receiving the current values of the policy as an argument. The changes performed by this build function will be used to create the new policy.
Returns
A new instance with the sames policies as the current instance, except for the policy being modified

◆ WithTransportPriority() [1/2]

TopicQos Rti.Dds.Topics.TopicQos.WithTransportPriority ( TransportPriority  policy)
inline

Creates an instance with a new TransportPriority policy.

Parameters
policyThe new policy
Returns
A new instance with the same policies as the current instance, except for the one being set

◆ WithTransportPriority() [2/2]

TopicQos Rti.Dds.Topics.TopicQos.WithTransportPriority ( Action< TransportPriorityBuilder build)

Creates a new instance with a new TransportPriority policy as configured by a build action

Parameters
buildA function receiving the current values of the policy as an argument. The changes performed by this build function will be used to create the new policy.
Returns
A new instance with the sames policies as the current instance, except for the policy being modified

◆ WithLifespan() [1/2]

TopicQos Rti.Dds.Topics.TopicQos.WithLifespan ( Lifespan  policy)
inline

Creates an instance with a new Lifespan policy.

Parameters
policyThe new policy
Returns
A new instance with the same policies as the current instance, except for the one being set

◆ WithLifespan() [2/2]

TopicQos Rti.Dds.Topics.TopicQos.WithLifespan ( Action< LifespanBuilder build)

Creates a new instance with a new Lifespan policy as configured by a build action

Parameters
buildA function receiving the current values of the policy as an argument. The changes performed by this build function will be used to create the new policy.
Returns
A new instance with the sames policies as the current instance, except for the policy being modified

◆ WithOwnership() [1/2]

TopicQos Rti.Dds.Topics.TopicQos.WithOwnership ( Ownership  policy)
inline

Creates an instance with a new Ownership policy.

Parameters
policyThe new policy
Returns
A new instance with the same policies as the current instance, except for the one being set

◆ WithOwnership() [2/2]

TopicQos Rti.Dds.Topics.TopicQos.WithOwnership ( Action< OwnershipBuilder build)

Creates a new instance with a new Ownership policy as configured by a build action

Parameters
buildA function receiving the current values of the policy as an argument. The changes performed by this build function will be used to create the new policy.
Returns
A new instance with the sames policies as the current instance, except for the policy being modified

◆ WithRepresentation() [1/2]

TopicQos Rti.Dds.Topics.TopicQos.WithRepresentation ( DataRepresentation  policy)
inline

Creates an instance with a new DataRepresentation policy.

Parameters
policyThe new policy
Returns
A new instance with the same policies as the current instance, except for the one being set

◆ WithRepresentation() [2/2]

TopicQos Rti.Dds.Topics.TopicQos.WithRepresentation ( Action< DataRepresentationBuilder build)

Creates a new instance with a new DataRepresentation policy as configured by a build action

Parameters
buildA function receiving the current values of the policy as an argument. The changes performed by this build function will be used to create the new policy.
Returns
A new instance with the sames policies as the current instance, except for the policy being modified

◆ ToDataWriterQos()

DataWriterQos Rti.Dds.Topics.TopicQos.ToDataWriterQos ( )

Creates a DataWriterQos object with the policies of this TopicQos.

◆ ToDataReaderQos()

DataReaderQos Rti.Dds.Topics.TopicQos.ToDataReaderQos ( )

Creates a DataReaderQos object with the policies of this TopicQos.

◆ Equals() [1/2]

bool Rti.Dds.Topics.TopicQos.Equals ( TopicQos  other)
inline

Compares all the policies for equality

◆ GetHashCode()

override int Rti.Dds.Topics.TopicQos.GetHashCode ( )
inline

Returns the hash code by combining that of each policy

◆ Equals() [2/2]

override bool Rti.Dds.Topics.TopicQos.Equals ( object  obj)

Compares all the policies for equality

◆ ToString() [1/4]

override string Rti.Dds.Topics.TopicQos.ToString ( )

Returns an XML representation of the QoS object.

The output is formatted using the default values for the QosPrintFormat and only QoS policies which differ from the documented default are included.

◆ ToString() [2/4]

string Rti.Dds.Topics.TopicQos.ToString ( QosPrintFormat  format)

Returns an XML representation of the QoS object.

Parameters
formatThe baseQos profile.

This overload accepts a value for the baseQos. Only the differences between the TopicQos object being printed and the baseQos are included in the output.

◆ ToString() [3/4]

string Rti.Dds.Topics.TopicQos.ToString ( TopicQos  baseQos,
QosPrintFormat  format = null 
)

Returns an XML representation of the QoS object.

Parameters
baseQosThe baseQos profile.
formatthe format used to configure the output. If not supplied the output is formatted using the default format.

This overload accepts a value for the baseQos. Only the differences between the TopicQos object being printed and the baseQos are included in the output.

◆ ToString() [4/4]

string Rti.Dds.Topics.TopicQos.ToString ( QosPrintAll  baseQos,
QosPrintFormat  format = null 
)

Returns an XML representation of the QoS object.

Parameters
baseQosUsed to indicate that the entire QoS object should be included in the output. The only value which should be provided for this argument is QosPrintAll.Value
formatThe format used to configure the output. If not supplied, the output is formatted using the default format.

This overload accepts a parameter of type QosPrintAll. Unlike the other ToString overloads, the entire QoS object will be included in the output.

Property Documentation

◆ Default

TopicQos Rti.Dds.Topics.TopicQos.Default = new TopicQos()
staticget

Singleton containing the documented default value of a TopicQos

This is a static value containing the documented default values for each policy. Use Domain.DomainParticipant.DefaultTopicQos for the runtime default value that takes into consideration the current configuration.

◆ TopicData

TopicData Rti.Dds.Topics.TopicQos.TopicData
get

Gets the TopicData policy.

◆ Durability

Durability Rti.Dds.Topics.TopicQos.Durability
get

Gets the Durability policy.

◆ DurabilityService

DurabilityService Rti.Dds.Topics.TopicQos.DurabilityService
get

Gets the DurabilityService policy.

◆ Deadline

Deadline Rti.Dds.Topics.TopicQos.Deadline
get

Gets the Deadline policy.

◆ LatencyBudget

LatencyBudget Rti.Dds.Topics.TopicQos.LatencyBudget
get

Gets the LatencyBudget policy.

◆ Liveliness

Liveliness Rti.Dds.Topics.TopicQos.Liveliness
get

Gets the Liveliness policy.

◆ Reliability

Reliability Rti.Dds.Topics.TopicQos.Reliability
get

Gets the Reliability policy.

◆ DestinationOrder

DestinationOrder Rti.Dds.Topics.TopicQos.DestinationOrder
get

Gets the DestinationOrder policy.

◆ History

History Rti.Dds.Topics.TopicQos.History
get

Gets the History policy.

◆ ResourceLimits

ResourceLimits Rti.Dds.Topics.TopicQos.ResourceLimits
get

Gets the ResourceLimits policy.

◆ TransportPriority

TransportPriority Rti.Dds.Topics.TopicQos.TransportPriority
get

Gets the TransportPriority policy.

◆ Lifespan

Lifespan Rti.Dds.Topics.TopicQos.Lifespan
get

Gets the Lifespan policy.

◆ Ownership

Ownership Rti.Dds.Topics.TopicQos.Ownership
get

Gets the Ownership policy.

◆ Representation

DataRepresentation Rti.Dds.Topics.TopicQos.Representation
get

Gets the DataRepresentation policy.