小编OLH*_*OLH的帖子

成功部署 verticle 但我收到此错误:结果已完成:成功

我成功部署了垂直,但我仍然收到此错误:结果已经完成:成功。我不明白为什么,我需要一些解释,这是我的 Deploy 类:

public class Deploy {
private static Logger logger = LogManager.getLogger(Deploy.class);

private static void deployAsynchronousVerticalByIndex(Vertx vertx, int indexCurrentDeploy, JsonArray verticalArray, Future<Void> startFuture, JsonObject jsonObjectConfig) {
    JsonObject currentVertical = verticalArray.getJsonObject(indexCurrentDeploy);
    currentVertical.forEach(entry -> {
        logger.debug("Starting deploy of class: " + entry.getKey() + ", With the config: " + entry.getValue() + ".");

        DeploymentOptions optionsDeploy = new DeploymentOptions().setConfig(jsonObjectConfig);
        ObservableFuture<String> observable = RxHelper.observableFuture();
        vertx.deployVerticle(entry.getKey(), optionsDeploy, observable.toHandler());

        observable.subscribe(id -> {
            logger.info("Class " + entry.getKey() + " deployed.");
            if (indexCurrentDeploy + 1 < …
Run Code Online (Sandbox Code Playgroud)

java vert.x

-1
推荐指数
1
解决办法
2018
查看次数

标签 统计

java ×1

vert.x ×1