Package org.vertx.java.core.impl

Examples of org.vertx.java.core.impl.DefaultVertx


  @Override
  public CompletableFuture<Void> connect() {
    final CompletableFuture<Void> future = new CompletableFuture<>();

    if (vertx == null) {
      vertx = new DefaultVertx();
    }

    if (client == null) {
      client = vertx.createNetClient();
      client.setTCPKeepAlive(true);
View Full Code Here


  @Override
  public CompletableFuture<Void> listen() {
    final CompletableFuture<Void> future = new CompletableFuture<>();

    if (vertx == null) {
      vertx = new DefaultVertx();
    }

    if (server == null) {
      server = vertx.createNetServer();
      server.setTCPKeepAlive(true);
View Full Code Here

  private String host;
  private int port;

  public VertxHttpService(Copycat copycat) {
    super(copycat);
    this.vertx = new DefaultVertx();
  }
View Full Code Here

  public VertxHttpService(Copycat copycat, String host, int port) {
    super(copycat);
    this.host = host;
    this.port = port;
    this.vertx = new DefaultVertx();
  }
View Full Code Here

  private String host;
  private int port;

  public VertxTcpService(Copycat copycat) {
    super(copycat);
    this.vertx = new DefaultVertx();
  }
View Full Code Here

  @Override
  public CompletableFuture<Void> start() {
    final CompletableFuture<Void> future = new CompletableFuture<>();
    if (vertx == null) {
      vertx = new DefaultVertx(port >= 0 ? port : 0, host, (vertxResult) -> {
        if (vertxResult.failed()) {
          future.completeExceptionally(vertxResult.cause());
        } else {
          vertx.eventBus().registerHandler(address, messageHandler, (eventBusResult) -> {
            if (eventBusResult.failed()) {
View Full Code Here

        dash.runVertx();
        dash.join();
    }

    public DropwizardDashboardStarter() throws Exception {
        VertxInternal vertx = new DefaultVertx();
        manager = new VerticleManager(vertx, null);
    }
View Full Code Here

TOP

Related Classes of org.vertx.java.core.impl.DefaultVertx

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.