![]() |
OpenSplice Java 5 DCPS
v6.x
OpenSplice Java 5 OpenSplice Data Distribution Service Data-Centric Publish-Subscribe API
|
Controls the behavior of the org.omg.dds.core.Entity when acting as a factory for other entities. More...
Public Member Functions | |
ServiceEnvironment | getEnvironment () |
boolean | isAutoEnableCreatedEntities () |
EntityFactory | withAutoEnableCreatedEntities (boolean autoEnableCreatedEntities) |
Copy this policy and override the value of the property. More... | |
Controls the behavior of the org.omg.dds.core.Entity when acting as a factory for other entities.
In other words, configures the side-effects of the create_*
operations.
Concerns: org.omg.dds.domain.DomainParticipantFactory, org.omg.dds.domain.DomainParticipant, org.omg.dds.pub.Publisher, org.omg.dds.sub.Subscriber
RxO: No
Changeable: Yes
This policy controls the behavior of the Entity as a factory for other entities.
This policy concerns only DomainParticipant (as factory for Publisher, Subscriber, and org.omg.dds.topic.Topic), Publisher (as factory for org.omg.dds.pub.DataWriter), and Subscriber (as factory for org.omg.dds.sub.DataReader).
This policy is mutable. A change in the policy affects only the entities created after the change; not the previously created entities.
The setting of autoenableCreatedEntities to true indicates that the factory create<entity>
operation will automatically invoke the org.omg.dds.core.Entity#enable() operation each time a new Entity is created. Therefore, the Entity returned by create<entity>
will already be enabled. A setting of false indicates that the Entity will not be automatically enabled. The application will need to enable it explicitly by means of the enable operation.
The default setting of autoenableCreatedEntities = true means that, by default, it is not necessary to explicitly call enable on newly created entities.
Definition at line 58 of file EntityFactory.java.
|
inherited |
Implemented in org.omg.dds.core.ServiceEnvironment, org.opensplice.dds.sub.ReflectionDataReader< TYPE, OUT_TYPE >, org.opensplice.dds.core.ModifiableTimeImpl, org.opensplice.dds.pub.ReflectionDataWriter< TYPE >, org.opensplice.dds.core.DurationImpl, org.opensplice.dds.topic.ContentFilteredTopicImpl< TYPE >, org.opensplice.dds.sub.ReadConditionImpl< TYPE >, org.opensplice.dds.core.EntityQosImpl< T extends QosPolicy >, org.opensplice.dds.type.TypeSupportImpl< TYPE >, org.opensplice.dds.topic.PublicationBuiltinTopicDataImpl, org.opensplice.dds.topic.SubscriptionBuiltinTopicDataImpl, org.opensplice.dds.topic.TopicBuiltinTopicDataImpl, org.opensplice.dds.domain.DomainParticipantFactoryImpl, org.opensplice.dds.core.QosProviderImpl, org.opensplice.dds.core.status.OfferedIncompatibleQosStatusImpl, org.opensplice.dds.core.status.RequestedIncompatibleQosStatusImpl, org.opensplice.dds.core.InstanceHandleImpl, org.opensplice.dds.core.StatusConditionImpl< T extends Entity<?, ?>, org.opensplice.dds.core.status.LivelinessChangedStatusImpl, org.opensplice.dds.core.status.PublicationMatchedStatusImpl, org.opensplice.dds.core.status.SubscriptionMatchedStatusImpl, org.opensplice.dds.sub.SampleImpl< TYPE >, org.opensplice.dds.core.policy.ShareImpl, org.opensplice.dds.core.status.OfferedDeadlineMissedStatusImpl, org.opensplice.dds.core.status.SampleRejectedStatusImpl, org.opensplice.dds.core.WaitSetImpl, org.opensplice.dds.topic.ParticipantBuiltinTopicDataImpl, org.opensplice.dds.core.status.RequestedDeadlineMissedStatusImpl, org.opensplice.dds.topic.BuiltinTopicKeyImpl, org.opensplice.dds.core.GuardConditionImpl, org.opensplice.dds.core.event.AllDataDisposedEventImpl< TYPE >, org.opensplice.dds.core.policy.QosPolicyCountImpl, org.opensplice.dds.core.status.InconsistentTopicStatusImpl, org.opensplice.dds.core.status.LivelinessLostStatusImpl, org.opensplice.dds.core.status.SampleLostStatusImpl, org.opensplice.dds.core.policy.QosPolicyImpl, org.opensplice.dds.core.status.AllDataDisposedStatusImpl, org.opensplice.dds.core.IllegalArgumentExceptionImpl, org.opensplice.dds.core.InconsistentPolicyExceptionImpl, org.opensplice.dds.core.policy.PolicyFactoryImpl, org.opensplice.dds.core.policy.TypeConsistencyEnforcementImpl, org.opensplice.dds.core.PreconditionNotMetExceptionImpl, org.opensplice.dds.core.AlreadyClosedExceptionImpl, org.opensplice.dds.core.IllegalOperationExceptionImpl, org.opensplice.dds.core.ImmutablePolicyExceptionImpl, org.opensplice.dds.core.NotEnabledExceptionImpl, org.opensplice.dds.core.OutOfResourcesExceptionImpl, org.opensplice.dds.core.DDSExceptionImpl, org.opensplice.dds.core.status.DataAvailableStatusImpl, and org.opensplice.dds.core.status.DataOnReadersStatusImpl.
boolean org.omg.dds.core.policy.EntityFactory.isAutoEnableCreatedEntities | ( | ) |
Implemented in org.opensplice.dds.core.policy.EntityFactoryImpl.
EntityFactory org.omg.dds.core.policy.EntityFactory.withAutoEnableCreatedEntities | ( | boolean | autoEnableCreatedEntities | ) |
Copy this policy and override the value of the property.
autoEnableCreatedEntities | Specifies whether the entity acting as a factory automatically enables the instances it creates. If autoEnableCreatedEntities is true the factory will automatically enable each created Entity, otherwise it will not. |
Implemented in org.opensplice.dds.core.policy.EntityFactoryImpl.