# firstvertx **Repository Path**: ForeVerWater/firstvertx ## Basic Information - **Project Name**: firstvertx - **Description**: firstvertx ,vertx的各种使用示例 - **Primary Language**: Java - **License**: GPL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-05-05 - **Last Updated**: 2022-05-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README = Firstvertx image:https://img.shields.io/badge/vert.x-3.9.12-purple.svg[link="https://vertx.io"] This application was generated using http://start.vertx.io == Building To launch your tests: ``` ./mvnw clean test ``` To package your application: ``` ./mvnw clean package ``` To run your application: ``` ./mvnw clean compile exec:java ``` == Help * https://vertx.io/docs/[Vert.x Documentation] * https://stackoverflow.com/questions/tagged/vert.x?sort=newest&pageSize=15[Vert.x Stack Overflow] * https://groups.google.com/forum/?fromgroups#!forum/vertx[Vert.x User Group] * https://gitter.im/eclipse-vertx/vertx-users[Vert.x Gitter] Futer + Promise模式 * 每一个lambda表达式,都是一个Handler接口,但Handler接口中,没提供链式调用的方法 * 根据java面向对象特点,只要Handler接口有子类或子接口实现了链式调用的功能,就可以直接用这个子类或者子接口 * Future是Handler的子接口,他有compose方法可以进行链式调用 * 但Future无法封装异步调用的结果,需要借助Handler的另一个子接口Promise来封装异步调用的结果 > 只有Handler中的泛型有AsyncResult才可以用Future+Promise模式