Package org.vertx.java.core.impl

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


    server.listen(port);
  }

  public static void main(String[] args) throws Exception {
    Vertx vertx = new DefaultVertx();
    SendingAndReceivingEvents app = new SendingAndReceivingEvents(vertx);
    app.start();
    Thread.sleep(Long.MAX_VALUE);
  }
View Full Code Here


      }
    }
  }

  public static void main(String[] args) throws Exception {
    Vertx vertx = new DefaultVertx();
    UsingRooms app = new UsingRooms(vertx);
    app.start();
    Thread.sleep(Long.MAX_VALUE);
  }
View Full Code Here

    server.listen(8080);
  }

  public static void main(String[] args) throws Exception {
    Vertx vertx = new DefaultVertx();
    TestWebServer webServer = new TestWebServer(vertx);
    webServer.start();
    Thread.sleep(Long.MAX_VALUE);
  }
View Full Code Here

    server.listen(port);
  }

  public static void main(String[] args) throws Exception {
    Vertx vertx = new DefaultVertx();
    RestrictingYourselfToANamespace app = new RestrictingYourselfToANamespace(vertx);
    app.start();
    Thread.sleep(Long.MAX_VALUE);
  }
View Full Code Here

    server.listen(port);
  }

  public static void main(String[] args) throws Exception {
    Vertx vertx = new DefaultVertx();
    MessageServer app = new MessageServer(vertx);
    app.start();
    Thread.sleep(Long.MAX_VALUE);
  }
View Full Code Here

*/
public class SocketIOServerTest {

  public static void main(String[] args) throws InterruptedException {
    int port = 9090;
    final Vertx vertx = new DefaultVertx();
    HttpServer httpServer = vertx.createHttpServer();

    SocketIOServer io = new DefaultSocketIOServer(vertx, httpServer);
    io.configure(new Configurer() {
      public void configure(JsonObject config) {
        config.putString("transports", "websocket,flashsocket,xhr-polling,jsonp-polling,htmlfile");
View Full Code Here

    server.listen(port);
  }

  public static void main(String[] args) throws Exception {
    Vertx vertx = new DefaultVertx();
    AuthorizationAndHandshaking app = new AuthorizationAndHandshaking(vertx);
    app.start();
    Thread.sleep(Long.MAX_VALUE);

  }
View Full Code Here

    server.listen(port);
  }

  public static void main(String[] args) throws Exception {
    Vertx vertx = new DefaultVertx();
    Issue5 app = new Issue5(vertx);
    app.start();
    Thread.sleep(Long.MAX_VALUE);
  }
View Full Code Here

    server.listen(port);
  }

  public static void main(String[] args) throws Exception {
    Vertx vertx = new DefaultVertx();
    StoringDataAssociatedToClient app = new StoringDataAssociatedToClient(vertx);
    app.start();
    Thread.sleep(Long.MAX_VALUE);
  }
View Full Code Here

  /**
   * Creates a Vert.x instance.
   */
  private Vertx createVertx() {
    final CountDownLatch latch = new CountDownLatch(1);
    new DefaultVertx(port > 0 ? port : 0, Assert.isNotNull(host, "Vert.x host cannot be null"), new Handler<AsyncResult<Vertx>>() {
      @Override
      public void handle(AsyncResult<Vertx> result) {
        VertxEventBusProtocol.this.vertx = result.result();
        latch.countDown();
      }
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.