public interface History extends QosPolicy.ForTopic, QosPolicy.ForDataReader, QosPolicy.ForDataWriter
Durability
. On the subscribing side
it controls the samples that should be maintained until the application
"takes" them from the Service via DataReader.take()
.
Concerns: Topic
, DataReader
, DataWriter
RxO: No
Changeable: No
History.Kind.KEEP_LAST
, then the Service
will only attempt to keep the latest values of the instance and
discard the older ones. In this case, the value of depth regulates
the maximum number of values (up to and including the most current
one) the Service will maintain and deliver. The default (and most
common setting) for depth is one, indicating that only the most
recent value should be delivered.History.Kind.KEEP_ALL
, then the Service will
attempt to maintain and deliver all the values of the instance to
existing subscribers. The resources that the Service can use to
keep this history are limited by the settings of the
ResourceLimits
. If the limit is reached, then the
behavior of the Service will depend on the
Reliability
. If the reliability kind is
Reliability.Kind.BEST_EFFORT
, then the old values
will be discarded. If reliability is
Reliability.Kind.RELIABLE
, then the Service will
block the DataWriter until it can deliver the necessary old values
to all subscribers.Reliability
,
ResourceLimits
Modifier and Type | Interface and Description |
---|---|
static class |
History.Kind |
QosPolicy.ForDataReader, QosPolicy.ForDataWriter, QosPolicy.ForDomainParticipant, QosPolicy.ForDomainParticipantFactory, QosPolicy.ForPublisher, QosPolicy.ForSubscriber, QosPolicy.ForTopic
Modifier and Type | Method and Description |
---|---|
int |
getDepth() |
History.Kind |
getKind() |
History |
withDepth(int depth)
Copy this policy and override the value of the property.
|
History |
withKeepAll() |
History |
withKeepLast(int depth) |
History |
withKind(History.Kind kind)
Copy this policy and override the value of the property.
|
getEnvironment
History.Kind getKind()
int getDepth()
History withKind(History.Kind kind)
History withDepth(int depth)
History withKeepAll()
History withKeepLast(int depth)
Copyright © 2014. All rights reserved.