取消 verticle 部署

部署可以通过undeploy取消部署.

取消部署本身是异步的,所以如果想要在取消部署完成后通知,您可以部署指定完成处理程序:

vertx.undeploy(deploymentID, res -> {
  if (res.succeeded()) {
    System.out.println("Undeployed ok");
  } else {
    System.out.println("Undeploy failed!");
  }
});
Copyright © quanke.name 2016 all right reserved,powered by Gitbook该文件修订时间: 2016-09-06 03:18:18

results matching ""

    No results matching ""