public final class VertxUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static <VERTICLE extends io.vertx.core.AbstractVerticle> |
blockDeploy(io.vertx.core.Vertx vertx,
Class<VERTICLE> cls,
io.vertx.core.DeploymentOptions options) |
protected static void |
configureVertxFileCaching()
配置vertx的文件缓存功能,默认关闭
|
static <CLIENT_POOL> |
createClientDeployOptions(ClientPoolManager<CLIENT_POOL> clientMgr,
int instanceCount) |
static io.vertx.core.Vertx |
currentVertx() |
static <T extends io.vertx.core.AbstractVerticle> |
deployVerticle(io.vertx.core.Vertx vertx,
Class<T> cls,
int instanceCount) |
static byte[] |
getBytesFast(io.vertx.core.buffer.Buffer buffer) |
static byte[] |
getBytesFast(io.netty.buffer.ByteBuf byteBuf) |
static byte[] |
getBytesFast(InputStream inputStream) |
static io.vertx.core.Vertx |
getOrCreateVertxByName(String name,
io.vertx.core.VertxOptions vertxOptions) |
static io.vertx.core.Vertx |
getVertxByName(String name) |
static Map<String,VertxImplEx> |
getVertxMap() |
static io.vertx.core.Vertx |
init(String name,
io.vertx.core.VertxOptions vertxOptions) |
static io.vertx.core.Vertx |
init(io.vertx.core.VertxOptions vertxOptions) |
static <T> void |
runInContext(io.vertx.core.Context context,
AsyncResultCallback<T> callback,
T result,
Throwable e) |
public static Map<String,VertxImplEx> getVertxMap()
public static <T extends io.vertx.core.AbstractVerticle> void deployVerticle(io.vertx.core.Vertx vertx,
Class<T> cls,
int instanceCount)
public static <CLIENT_POOL> io.vertx.core.DeploymentOptions createClientDeployOptions(ClientPoolManager<CLIENT_POOL> clientMgr, int instanceCount)
public static <VERTICLE extends io.vertx.core.AbstractVerticle> boolean blockDeploy(io.vertx.core.Vertx vertx,
Class<VERTICLE> cls,
io.vertx.core.DeploymentOptions options)
throws InterruptedException
InterruptedExceptionpublic static io.vertx.core.Vertx getOrCreateVertxByName(String name, io.vertx.core.VertxOptions vertxOptions)
public static io.vertx.core.Vertx init(io.vertx.core.VertxOptions vertxOptions)
public static io.vertx.core.Vertx init(String name, io.vertx.core.VertxOptions vertxOptions)
protected static void configureVertxFileCaching()
public static io.vertx.core.Vertx currentVertx()
public static io.vertx.core.Vertx getVertxByName(String name)
public static <T> void runInContext(io.vertx.core.Context context,
AsyncResultCallback<T> callback,
T result,
Throwable e)
public static byte[] getBytesFast(InputStream inputStream) throws IOException
IOExceptionpublic static byte[] getBytesFast(io.vertx.core.buffer.Buffer buffer)
public static byte[] getBytesFast(io.netty.buffer.ByteBuf byteBuf)
Copyright © 2017–2018 The Apache Software Foundation. All rights reserved.