Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args) {
- Vertx vertx = Vertx.vertx();
- vertx.deployVerticle(MyVerticle.class.getName());
- }
- public static void main(String[] args) {
- Vertx vertx = Vertx.vertx();
- vertx.deployVerticle(new MyVerticle());
- }
- BlockingQueue<AsyncResult<String>> q = new ArrayBlockingQueue<>(1);
- Vertx.vertx().deployVerticle(new Application(), q::offer);
- AsyncResult<String> result = q.take();
- if (result.failed()) {
- throw new RuntimeException(result.cause());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement