public interface WriterDataLifecycle extends QosPolicy.ForDataWriter
DataWriter
with regards to the life
cycle of the data instances it manages.
Concerns: DataWriter
RxO: N/A
Changeable: Yes
This policy controls the behavior of the DataWriter with regards to the
lifecycle of the data instances it manages, that is, the data instances
that have been either explicitly registered with the DataWriter using the
DataWriter.registerInstance(Object)
operations or implicitly by
directly writing the data (see DataWriter.write(Object)
).
The autodisposeUnregisteredInstances flag controls the behavior when the
DataWriter unregisters an instance by means of the
DataWriter.unregisterInstance(org.omg.dds.core.InstanceHandle)
operations:
DataWriter.dispose(org.omg.dds.core.InstanceHandle)
operations on the instance prior to calling the unregister
operation.Entity.close()
). Therefore the
setting of the autodisposeUnregisteredInstances flag will determine
whether instances are ultimately disposed when the DataWriter is deleted
either directly by means of the Entity.close()
operation or
indirectly as a consequence of calling
Publisher.closeContainedEntities()
or
DomainParticipant.closeContainedEntities()
.QosPolicy.ForDataReader, QosPolicy.ForDataWriter, QosPolicy.ForDomainParticipant, QosPolicy.ForDomainParticipantFactory, QosPolicy.ForPublisher, QosPolicy.ForSubscriber, QosPolicy.ForTopic
Modifier and Type | Method and Description |
---|---|
boolean |
isAutDisposeUnregisteredInstances() |
WriterDataLifecycle |
withAutDisposeUnregisteredInstances(boolean autDisposeUnregisteredInstances)
Copy this policy and override the value of the property.
|
getEnvironment
boolean isAutDisposeUnregisteredInstances()
WriterDataLifecycle withAutDisposeUnregisteredInstances(boolean autDisposeUnregisteredInstances)
Copyright © 2014. All rights reserved.