public interface DurabilityService extends QosPolicy.ForTopic, QosPolicy.ForDataWriter
Durability.Kind
of
Durability.Kind.TRANSIENT
and
Durability.Kind.PERSISTENT
.
Concerns: Topic
, DataWriter
RxO: No
Changeable: No
This policy is used to configure the History
and the
ResourceLimits
used by the fictitious DataReader
and DataWriter
used by the "persistence service." The "persistence
service" is the one responsible for implementing
Durability.Kind.TRANSIENT
and
Durability.Kind.PERSISTENT
.Durability
QosPolicy.ForDataReader, QosPolicy.ForDataWriter, QosPolicy.ForDomainParticipant, QosPolicy.ForDomainParticipantFactory, QosPolicy.ForPublisher, QosPolicy.ForSubscriber, QosPolicy.ForTopic
Modifier and Type | Method and Description |
---|---|
int |
getHistoryDepth() |
History.Kind |
getHistoryKind() |
int |
getMaxInstances() |
int |
getMaxSamples() |
int |
getMaxSamplesPerInstance() |
Duration |
getServiceCleanupDelay() |
DurabilityService |
withHistoryDepth(int historyDepth)
Copy this policy and override the value of the property.
|
DurabilityService |
withHistoryKind(History.Kind historyKind)
Copy this policy and override the value of the property.
|
DurabilityService |
withMaxInstances(int maxInstances)
Copy this policy and override the value of the property.
|
DurabilityService |
withMaxSamples(int maxSamples)
Copy this policy and override the value of the property.
|
DurabilityService |
withMaxSamplesPerInstance(int maxSamplesPerInstance)
Copy this policy and override the value of the property.
|
DurabilityService |
withServiceCleanupDelay(Duration serviceCleanupDelay)
Copy this policy and override the value of the property.
|
DurabilityService |
withServiceCleanupDelay(long serviceCleanupDelay,
TimeUnit unit)
Copy this policy and override the value of the property.
|
getEnvironment
Duration getServiceCleanupDelay()
History.Kind getHistoryKind()
int getHistoryDepth()
int getMaxSamples()
int getMaxInstances()
int getMaxSamplesPerInstance()
DurabilityService withServiceCleanupDelay(Duration serviceCleanupDelay)
DurabilityService withServiceCleanupDelay(long serviceCleanupDelay, TimeUnit unit)
DurabilityService withHistoryKind(History.Kind historyKind)
DurabilityService withHistoryDepth(int historyDepth)
DurabilityService withMaxSamples(int maxSamples)
DurabilityService withMaxInstances(int maxInstances)
DurabilityService withMaxSamplesPerInstance(int maxSamplesPerInstance)
Copyright © 2014. All rights reserved.