org.fusesource.mqtt.client.QoS.equals()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(65)

本文整理了Java中org.fusesource.mqtt.client.QoS.equals方法的一些代码示例,展示了QoS.equals的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。QoS.equals方法的具体详情如下:
包路径:org.fusesource.mqtt.client.QoS
类名称:QoS
方法名:equals

QoS.equals介绍

暂无

代码示例

代码示例来源:origin: io.fabric8.jube.images.fabric8/fabric8-mq

/**
 * Given a PUBLISH command determine if it will expect an ACK based on the
 * QoS of the Publish command and the QoS of this subscription.
 *
 * @param publish The publish command to inspect.
 * @return true if the client will expect an PUBACK for this PUBLISH.
 */
public boolean expectAck(PUBLISH publish) {
  QoS publishQoS = publish.qos();
  if (publishQoS.compareTo(this.qos) > 0) {
    publishQoS = this.qos;
  }
  return !publishQoS.equals(QoS.AT_MOST_ONCE);
}

代码示例来源:origin: io.fabric8.ipaas.apps/fabric8mq

/**
 * Given a PUBLISH command determine if it will expect an ACK based on the
 * QoS of the Publish command and the QoS of this subscription.
 *
 * @param publish The publish command to inspect.
 * @return true if the client will expect an PUBACK for this PUBLISH.
 */
public boolean expectAck(PUBLISH publish) {
  QoS publishQoS = publish.qos();
  if (publishQoS.compareTo(this.qos) > 0) {
    publishQoS = this.qos;
  }
  return !publishQoS.equals(QoS.AT_MOST_ONCE);
}

代码示例来源:origin: org.apache.activemq/activemq-mqtt

/**
 * Given a PUBLISH command determine if it will expect an ACK based on the
 * QoS of the Publish command and the QoS of this subscription.
 *
 * @param publish
 *        The publish command to inspect.
 *
 * @return true if the client will expect an PUBACK for this PUBLISH.
 */
public boolean expectAck(PUBLISH publish) {
  QoS publishQoS = publish.qos();
  if (publishQoS.compareTo(this.qos) > 0){
    publishQoS = this.qos;
  }
  return !publishQoS.equals(QoS.AT_MOST_ONCE);
}

代码示例来源:origin: org.apache.activemq/activemq-all

/**
 * Given a PUBLISH command determine if it will expect an ACK based on the
 * QoS of the Publish command and the QoS of this subscription.
 *
 * @param publish
 *        The publish command to inspect.
 *
 * @return true if the client will expect an PUBACK for this PUBLISH.
 */
public boolean expectAck(PUBLISH publish) {
  QoS publishQoS = publish.qos();
  if (publishQoS.compareTo(this.qos) > 0){
    publishQoS = this.qos;
  }
  return !publishQoS.equals(QoS.AT_MOST_ONCE);
}

代码示例来源:origin: org.apache.activemq/activemq-osgi

/**
 * Given a PUBLISH command determine if it will expect an ACK based on the
 * QoS of the Publish command and the QoS of this subscription.
 *
 * @param publish
 *        The publish command to inspect.
 *
 * @return true if the client will expect an PUBACK for this PUBLISH.
 */
public boolean expectAck(PUBLISH publish) {
  QoS publishQoS = publish.qos();
  if (publishQoS.compareTo(this.qos) > 0){
    publishQoS = this.qos;
  }
  return !publishQoS.equals(QoS.AT_MOST_ONCE);
}

相关文章