Пример #1
0
  public void setQos(TopicQos qos) {
    assert qos != null;

    PropertiesHelper.Property property;
    PropertiesHelper helper = new PropertiesHelper(properties);

    // TopicQos QosPolicies which are shared with DataReaderQos
    // and DataWriterQos are considered to be informational only.
    // *_QOS_USE_TOPIC_QOS is not used by the JMS provider,
    // therefore we are only interested in TopicDataQosPolicy.

    // TOPIC_DATA QosPolicy
    property = helper.find("TOPIC_DATA.value");
    if (property.exists()) {
      qos.topic_data.value = property.asBytes();
    }
  }
Пример #2
0
 public TopicQosPolicy(String value) {
   this(PropertiesHelper.valueOf(value));
 }