/*
* Copyright (c) 2011-2017 Contributors to the Eclipse Foundation
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
* which is available at https://www.apache.org/licenses/LICENSE-2.0.
*
* SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
*/
package io.vertx.core.spi;
import io.vertx.core.AsyncResult;
import io.vertx.core.Context;
import io.vertx.core.Handler;
import io.vertx.core.Vertx;
import io.vertx.core.VertxOptions;
import io.vertx.core.net.impl.transport.Transport;
Factory for creating Vertx instances.
Use this to create Vertx instances when embedding Vert.x core directly.
Author: pidster
/**
* Factory for creating Vertx instances.<p>
* Use this to create Vertx instances when embedding Vert.x core directly.<p>
*
* @author pidster
*
*/
public interface VertxFactory {
Vertx vertx();
Vertx vertx(VertxOptions options);
Vertx vertx(VertxOptions options, Transport transport);
void clusteredVertx(VertxOptions options, Handler<AsyncResult<Vertx>> resultHandler);
void clusteredVertx(VertxOptions options, Transport transport, Handler<AsyncResult<Vertx>> resultHandler);
Context context();
}