Aynı topic bilgisini gönderen birden fazla publisher varsa, hangisini tercih edileceğini belirtir. OwnershipQosPolicy yapısı kullanılır
kind Alanı
Bir enum'dur. Açıklaması şöyle
OwnershipQosPolicyKindThere are two possible values (see OwnershipQosPolicyKind):SHARED_OWNERSHIP_QOS: This option indicates that the service does not enforce unique ownership for each instance. In this case, multiple DataWriters are allowed to update the same data instance and all the updates are made available to the existing DataReaders. Those updates are also subject to the TimeBasedFilterQosPolicy or HistoryQosPolicy settings, so they can be filtered.EXCLUSIVE_OWNERSHIP_QOS: This option indicates that each instance can only be updated by one DataWriter, meaning that at any point in time a single DataWriter owns each instance and is the only one whose modifications will be visible for the existing DataReaders. The owner can be changed dynamically according to the highest strength between the alive DataWriters, which has not violated the deadline contract concerning the data instances. That strength can be changed using the OwnershipStrengthQosPolicy.
Hiç yorum yok:
Yorum Gönder