Package | Description |
---|---|
io.vertx.core | |
io.vertx.core.spi.tracing |
Modifier and Type | Field and Description |
---|---|
protected Context |
AbstractVerticle.context
Reference to the context of the verticle
|
Modifier and Type | Method and Description |
---|---|
static Context |
Vertx.currentContext()
Gets the current context
|
Context |
Context.exceptionHandler(Handler<Throwable> handler)
Set an exception handler called when the context runs an action throwing an uncaught throwable.
When this handler is called,
Vertx.currentContext() will return this context. |
Context |
Vertx.getOrCreateContext()
Gets the current context, or creates one if there isn't one
|
Modifier and Type | Method and Description |
---|---|
static <T> Future<T> |
Future.fromCompletionStage(CompletionStage<T> completionStage,
Context context)
Bridges a
CompletionStage object to a Vert.x future instance. |
void |
AbstractVerticle.init(Vertx vertx,
Context context)
Initialise the verticle.
|
void |
Verticle.init(Vertx vertx,
Context context)
Initialise the verticle with the Vert.x instance and the context.
|
Modifier and Type | Method and Description |
---|---|
default <R> I |
VertxTracer.receiveRequest(Context context,
SpanKind kind,
TracingPolicy policy,
R request,
String operation,
Iterable<Map.Entry<String,String>> headers,
TagExtractor<R> tagExtractor)
Signal a request has been received and will be processed.
|
default <R> void |
VertxTracer.receiveResponse(Context context,
R response,
O payload,
Throwable failure,
TagExtractor<R> tagExtractor)
Signal a response has been received.
|
default <R> O |
VertxTracer.sendRequest(Context context,
SpanKind kind,
TracingPolicy policy,
R request,
String operation,
BiConsumer<String,String> headers,
TagExtractor<R> tagExtractor)
Signal a request is sent.
|
default <R> void |
VertxTracer.sendResponse(Context context,
R response,
I payload,
Throwable failure,
TagExtractor<R> tagExtractor)
Signal the response is sent.
|
Copyright © 2022 Eclipse. All rights reserved.