@Extensibility(value=MUTABLE_EXTENSIBILITY) public interface EntityQos<P extends QosPolicy> extends Map<Class<? extends P>,P>, Serializable, DDSObject
QosPolicy
).
QoS (i.e., a collection of QosPolicy objects) may be associated with all
Entity
objects in the system such as Topic
,
DataWriter
, DataReader
, Publisher
,
Subscriber
, and DomainParticipant
.
Some QosPolicy values may not be consistent with other ones. When a set of
QosPolicy is passed (Entity.setQos(EntityQos)
operations), the set
resulting from adding the new policies on top of the previous is checked
for consistency. If the resulting QoS is inconsistent, the change of QoS
operation fails and the previous values are retained.
Objects of this type are immutable.Modifier and Type | Method and Description |
---|---|
<POLICY extends P> |
get(Class<POLICY> id) |
PolicyFactory |
getPolicyFactory()
Provides an instance of
PolicyFactory . |
EntityQos<P> |
withPolicies(P... policy)
Copy this object and override the values of the given policies.
|
EntityQos<P> |
withPolicy(P policy)
Copy this object and override the value of the given policy.
|
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
getEnvironment
<POLICY extends P> POLICY get(Class<POLICY> id)
EntityQos
.Map.get(Object)
EntityQos<P> withPolicy(P policy)
IllegalArgumentException
- if the given policy is not
applicable to the concrete type of this EntityQos.withPolicies(QosPolicy...)
EntityQos<P> withPolicies(P... policy)
IllegalArgumentException
- if any given policy is not
applicable to the concrete type of this EntityQos.withPolicy(QosPolicy)
PolicyFactory getPolicyFactory()
PolicyFactory
.PolicyFactory
Copyright © 2014. All rights reserved.