本文整理了Java中org.fusesource.mqtt.client.QoS.compareTo
方法的一些代码示例,展示了QoS.compareTo
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。QoS.compareTo
方法的具体详情如下:
包路径:org.fusesource.mqtt.client.QoS
类名称:QoS
方法名:compareTo
暂无
代码示例来源: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);
}
内容来源于网络,如有侵权,请联系作者删除!