public interface DestinationOrder extends QosPolicy.ForTopic, QosPolicy.ForDataReader, QosPolicy.ForDataWriter, RequestedOffered<DestinationOrder>
Publisher
entities to the same instance of data (i.e.,
matching Topic and key). The default kind is
DestinationOrder.Kind.BY_RECEPTION_TIMESTAMP
.
Concerns: Topic
, DataReader
, DataWriter
RxO: Yes
Changeable: No
This policy controls how each subscriber resolves the final value of a
data instance that is written by multiple DataWriter objects (which may be
associated with different Publisher objects) running on different nodes.
The setting DestinationOrder.Kind.BY_RECEPTION_TIMESTAMP
indicates that, assuming
the Ownership
allows it, the latest received value for
the instance should be the one whose value is kept. This is the default
value.
The setting DestinationOrder.Kind.BY_SOURCE_TIMESTAMP
indicates that, assuming the
Ownership
allows it, a time stamp placed at the source
should be used. This is the only setting that, in the case of concurrent
same-strength DataWriter objects updating the same instance, ensures all
subscribers will end up with the same final value for the instance. The
mechanism to set the source time stamp is middleware dependent.
The value offered is considered compatible with the value requested if and
only if the inequality "offered kind >= requested kind" evaluates to
true. For the purposes of this inequality, the values of DESTINATION_ORDER
kind are considered ordered such that BY_RECEPTION_TIMESTAMP <
BY_SOURCE_TIMESTAMP.Ownership
Modifier and Type | Interface and Description |
---|---|
static class |
DestinationOrder.Kind |
QosPolicy.ForDataReader, QosPolicy.ForDataWriter, QosPolicy.ForDomainParticipant, QosPolicy.ForDomainParticipantFactory, QosPolicy.ForPublisher, QosPolicy.ForSubscriber, QosPolicy.ForTopic
Modifier and Type | Method and Description |
---|---|
DestinationOrder.Kind |
getKind() |
DestinationOrder |
withKind(DestinationOrder.Kind kind)
Copy this policy and override the value of the property.
|
DestinationOrder |
withReceptionTimestamp() |
DestinationOrder |
withSourceTimestamp() |
getEnvironment
requestedOfferedContract
compareTo
DestinationOrder.Kind getKind()
DestinationOrder withKind(DestinationOrder.Kind kind)
DestinationOrder withReceptionTimestamp()
DestinationOrder withSourceTimestamp()
Copyright © 2014. All rights reserved.