We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b019a1c commit f35ac72Copy full SHA for f35ac72
mqtt-server-examples/src/main/java/io/vertx/example/mqtt/MqttServerVerticleApp.java
@@ -16,6 +16,7 @@
16
17
package io.vertx.example.mqtt;
18
19
+import io.vertx.core.DeploymentOptions;
20
import io.vertx.core.Vertx;
21
import io.vertx.core.logging.Logger;
22
import io.vertx.core.logging.LoggerFactory;
@@ -33,7 +34,10 @@ public static void main(String[] args) {
33
34
35
Vertx vertx = Vertx.vertx();
36
- vertx.deployVerticle("io.vertx.mqtt.examples.verticle.MqttServerVerticle");
37
+ DeploymentOptions options = new DeploymentOptions();
38
+ options.setInstances(5);
39
+
40
+ vertx.deployVerticle("io.vertx.example.mqtt.MqttServerVerticle", options);
41
42
try {
43
System.in.read();
0 commit comments