Codota Logo
MqttSubAckMessage.grantedQoSLevels
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
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

  • Creating JSON documents from java classes using gson
  • onRequestPermissionsResult (Fragment)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setContentView (Activity)
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • TreeMap (java.util)
    A Red-Black tree based NavigableMap implementation. The map is sorted according to the Comparable of
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now