public final class VertxUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
blockCloseVertx(io.vertx.core.Vertx vertx) |
static void |
blockCloseVertxByName(String name) |
static <VERTICLE extends io.vertx.core.Verticle> |
blockDeploy(io.vertx.core.Vertx vertx,
Class<VERTICLE> cls,
io.vertx.core.DeploymentOptions options) |
static CompletableFuture<Void> |
closeVertxByName(String name) |
protected static void |
configureVertxFileCaching(io.vertx.core.VertxOptions vertxOptions)
配置vertx的文件缓存功能,默认关闭
|
static <CLIENT_POOL> |
createClientDeployOptions(ClientPoolManager<CLIENT_POOL> clientMgr,
int instanceCount) |
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 Map<String,io.vertx.core.Vertx> |
getVertxMap() |
static io.vertx.core.Vertx |
init(String name,
io.vertx.core.VertxOptions vertxOptions) |
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.Verticle> 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(String name, io.vertx.core.VertxOptions vertxOptions)
protected static void configureVertxFileCaching(io.vertx.core.VertxOptions vertxOptions)
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)
public static CompletableFuture<Void> closeVertxByName(String name)
public static void blockCloseVertxByName(String name)
public static void blockCloseVertx(io.vertx.core.Vertx vertx)
Copyright © 2017–2021 The Apache Software Foundation. All rights reserved.