public class VertxUtil extends Object
| Constructor and Description |
|---|
VertxUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <T> void |
executeBlocking(io.vertx.core.Vertx vertx,
io.vertx.core.Handler<io.vertx.core.Future<T>> future,
boolean ordered,
io.vertx.core.Handler<io.vertx.core.AsyncResult<T>> handler)
Equivalent to
Vertx.executeBlocking(Handler, boolean, Handler),
but preserves the MDC correctly. |
static <T> void |
executeBlocking(io.vertx.core.Vertx vertx,
io.vertx.core.Handler<io.vertx.core.Future<T>> future,
io.vertx.core.Handler<io.vertx.core.AsyncResult<T>> handler)
Equivalent to
Vertx.executeBlocking(Handler, Handler),
but preserves the MDC correctly. |
static <T> void |
executeBlocking(io.vertx.core.WorkerExecutor executor,
io.vertx.core.Handler<io.vertx.core.Future<T>> future,
boolean ordered,
io.vertx.core.Handler<io.vertx.core.AsyncResult<T>> handler)
Equivalent to
Vertx.executeBlocking(Handler, boolean, Handler),
but preserves the MDC correctly. |
static <T> void |
executeBlocking(io.vertx.core.WorkerExecutor executor,
io.vertx.core.Handler<io.vertx.core.Future<T>> future,
io.vertx.core.Handler<io.vertx.core.AsyncResult<T>> handler)
Equivalent to
Vertx.executeBlocking(Handler, Handler),
but preserves the MDC correctly. |
static <T> io.vertx.core.Handler<T> |
mdc(io.vertx.core.Handler<T> handler)
Wrap a Handler in a way that will preserve the SLF4J MDC context.
|
static <T> io.vertx.core.Handler<T> |
mdcEventLoop(io.vertx.core.Handler<T> handler)
Wrap a Handler in a way that will preserve the SLF4J MDC context.
|
public static <T> io.vertx.core.Handler<T> mdc(io.vertx.core.Handler<T> handler)
public static <T> io.vertx.core.Handler<T> mdcEventLoop(io.vertx.core.Handler<T> handler)
Context.runOnContext(Handler) from the current context that
calls this method, ensuring the handler call will run on the correct
event loop.public static <T> void executeBlocking(io.vertx.core.Vertx vertx,
io.vertx.core.Handler<io.vertx.core.Future<T>> future,
io.vertx.core.Handler<io.vertx.core.AsyncResult<T>> handler)
Vertx.executeBlocking(Handler, Handler),
but preserves the MDC correctly.public static <T> void executeBlocking(io.vertx.core.Vertx vertx,
io.vertx.core.Handler<io.vertx.core.Future<T>> future,
boolean ordered,
io.vertx.core.Handler<io.vertx.core.AsyncResult<T>> handler)
Vertx.executeBlocking(Handler, boolean, Handler),
but preserves the MDC correctly.public static <T> void executeBlocking(io.vertx.core.WorkerExecutor executor,
io.vertx.core.Handler<io.vertx.core.Future<T>> future,
io.vertx.core.Handler<io.vertx.core.AsyncResult<T>> handler)
Vertx.executeBlocking(Handler, Handler),
but preserves the MDC correctly.public static <T> void executeBlocking(io.vertx.core.WorkerExecutor executor,
io.vertx.core.Handler<io.vertx.core.Future<T>> future,
boolean ordered,
io.vertx.core.Handler<io.vertx.core.AsyncResult<T>> handler)
Vertx.executeBlocking(Handler, boolean, Handler),
but preserves the MDC correctly.Copyright © 2020. All rights reserved.