Untitled

mail@pastecode.io avatar
unknown
plain_text
18 days ago
489 B
2
Indexable
Never
private Future<Void> deploy(String name, DeploymentOptions opts){
        Future<Void> done = Future.future();

        vertx.deployVerticle(name, opts, res -> {
            if(res.failed()){
                System.out.println("Failed to deploy verticle " + name);
                done.fail(res.cause());
            }
            else {
                System.out.println("Deployed verticle " + name);
                done.complete();
            }
        });

        return done;
    }
Leave a Comment