Tabnine Logo
MqttSubAckMessage.grantedQoSLevels
Code IndexAdd Tabnine to your IDE (free)

How to use
grantedQoSLevels
method
in
io.vertx.mqtt.messages.MqttSubAckMessage

Best Java code snippets using io.vertx.mqtt.messages.MqttSubAckMessage.grantedQoSLevels (Showing top 7 results out of 315)

origin: vert-x3/vertx-examples

System.out.println("Receive SUBACK from server with granted QoS : " + h.grantedQoSLevels());
origin: io.vertx/vertx-rx-java

/**
 * @return list of granted QoS levels
 */
public List<Integer> grantedQoSLevels() { 
 if (cached_1 != null) {
  return cached_1;
 }
 List<Integer> ret = delegate.grantedQoSLevels();
 cached_1 = ret;
 return ret;
}
origin: vert-x3/vertx-rx

/**
 * @return list of granted QoS levels
 */
public List<Integer> grantedQoSLevels() { 
 if (cached_1 != null) {
  return cached_1;
 }
 List<Integer> ret = delegate.grantedQoSLevels();
 cached_1 = ret;
 return ret;
}
origin: io.vertx/vertx-mqtt

 private void subscribe(TestContext context, MqttQoS qos) {

  this.messageId = 0;

  Async async = context.async();
  MqttClient client = MqttClient.create(Vertx.vertx());

  client.subscribeCompletionHandler(suback -> {
   assertTrue(suback.messageId() == messageId);
   assertTrue(suback.grantedQoSLevels().contains(qos.value()));
   log.info("subscribing complete for message id = " + suback.messageId() + " with QoS " + suback.grantedQoSLevels());
   client.disconnect();
   async.countDown();
  });

  client.connect(TestUtil.BROKER_PORT, TestUtil.BROKER_ADDRESS, ar -> {
   assertTrue(ar.succeeded());

   client.subscribe(MQTT_TOPIC, qos.value(), done -> {
    assertTrue(done.succeeded());
    messageId = done.result();
    log.info("subscribing on [" + MQTT_TOPIC + "] with QoS [" + qos.value() + "] message id = " + messageId);
   });
  });

  async.await();
 }
}
origin: vert-x3/vertx-mqtt

 private void subscribe(TestContext context, MqttQoS qos) {

  this.messageId = 0;

  Async async = context.async();
  MqttClient client = MqttClient.create(Vertx.vertx());

  client.subscribeCompletionHandler(suback -> {
   assertTrue(suback.messageId() == messageId);
   assertTrue(suback.grantedQoSLevels().contains(qos.value()));
   log.info("subscribing complete for message id = " + suback.messageId() + " with QoS " + suback.grantedQoSLevels());
   client.disconnect();
   async.countDown();
  });

  client.connect(TestUtil.BROKER_PORT, TestUtil.BROKER_ADDRESS, ar -> {
   assertTrue(ar.succeeded());

   client.subscribe(MQTT_TOPIC, qos.value(), done -> {
    assertTrue(done.succeeded());
    messageId = done.result();
    log.info("subscribing on [" + MQTT_TOPIC + "] with QoS [" + qos.value() + "] message id = " + messageId);
   });
  });

  async.await();
 }
}
origin: vert-x3/vertx-mqtt

assertTrue(suback.grantedQoSLevels().contains(qos.value()));
log.info("subscribing complete for message id = " + suback.messageId() + " with QoS " + suback.grantedQoSLevels());
origin: io.vertx/vertx-mqtt

assertTrue(suback.grantedQoSLevels().contains(qos.value()));
log.info("subscribing complete for message id = " + suback.messageId() + " with QoS " + suback.grantedQoSLevels());
io.vertx.mqtt.messagesMqttSubAckMessagegrantedQoSLevels

Popular methods of MqttSubAckMessage

  • messageId
  • create
    Create a concrete instance of a Vert.x suback message

Popular in Java

  • Reactive rest calls using spring rest template
  • requestLocationUpdates (LocationManager)
  • onRequestPermissionsResult (Fragment)
  • getSharedPreferences (Context)
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • JFrame (javax.swing)
  • JLabel (javax.swing)
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now