RTI Connext C# API Version 7.3.0
Rti.Dds.Core.Policy.History Class Reference

Specifies the middleware behavior in the case where the value of a sample changes (one or more times) before it can be successfully communicated to one or more existing subscribers. More...

Inherits IEquatable< History >.

Public Member Functions

 History (HistoryKind kind, int depth=1)
 Creates a new instance More...
 
History With (Action< HistoryBuilder > build)
 Creates a new History with a set of changes specified in an Action More...
 
override int GetHashCode ()
 Gets the hash code More...
 
override bool Equals (object other)
 Compares for equality More...
 
bool Equals (History other)
 Compares for equality More...
 

Properties

HistoryKind Kind [get]
 Specifies the kind of history to be kept. More...
 
int Depth [get]
 Specifies the number of samples to be kept, when Kind is HistoryKind.KeepLast More...
 
static History Default [get]
 Singleton containing the default value of a History More...
 

Detailed Description

Specifies the middleware behavior in the case where the value of a sample changes (one or more times) before it can be successfully communicated to one or more existing subscribers.

Constructor & Destructor Documentation

◆ History()

Rti.Dds.Core.Policy.History.History ( HistoryKind  kind,
int  depth = 1 
)
inline

Creates a new instance

Parameters
kindThe value for Kind
depthThe value for Depth

Member Function Documentation

◆ With()

History Rti.Dds.Core.Policy.History.With ( Action< HistoryBuilder build)
inline

Creates a new History with a set of changes specified in an Action

Parameters
buildAn Action (typically a lambda function) that receives a modifiable object with the current values of this History.
Returns
A new History with the changes applied by the Action

◆ GetHashCode()

override int Rti.Dds.Core.Policy.History.GetHashCode ( )
inline

Gets the hash code

◆ Equals() [1/2]

override bool Rti.Dds.Core.Policy.History.Equals ( object  other)

Compares for equality

◆ Equals() [2/2]

bool Rti.Dds.Core.Policy.History.Equals ( History  other)
inline

Compares for equality

Property Documentation

◆ Kind

HistoryKind Rti.Dds.Core.Policy.History.Kind
get

Specifies the kind of history to be kept.

The full documentation is available in the C API: DDS_HistoryQosPolicy_kind

◆ Depth

int Rti.Dds.Core.Policy.History.Depth
get

Specifies the number of samples to be kept, when Kind is HistoryKind.KeepLast

The full documentation is available in the C API: DDS_HistoryQosPolicy_depth

◆ Default

History Rti.Dds.Core.Policy.History.Default
staticget

Singleton containing the default value of a History