public class RequestMetric extends HashMap<String,Object>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Field and Description |
|---|---|
(package private) static String |
HTTP_REQUEST_PATH |
(package private) static String |
HTTP_REQUEST_SAMPLE |
(package private) static String |
METRICS_CONTEXT |
(package private) io.vertx.ext.web.RoutingContext |
routingContext |
| Constructor and Description |
|---|
RequestMetric() |
| Modifier and Type | Method and Description |
|---|---|
(package private) <T> T |
getFromRoutingContext(String key) |
(package private) <T> T |
getValue(String key) |
static RequestMetric |
retrieveRequestMetric(io.vertx.core.Context context)
Retrieve and remove the RequestMetric from the Vertx Context
|
static void |
setRequestMetric(io.vertx.core.Context context,
RequestMetric requestMetric)
Stash the RequestMetric in the Vertx Context
|
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCode, toStringstatic final String METRICS_CONTEXT
static final String HTTP_REQUEST_PATH
static final String HTTP_REQUEST_SAMPLE
volatile io.vertx.ext.web.RoutingContext routingContext
public static void setRequestMetric(io.vertx.core.Context context,
RequestMetric requestMetric)
context - Vertx context to store RequestMetric inrequestMetric - VertxMeterFilterpublic static RequestMetric retrieveRequestMetric(io.vertx.core.Context context)
context - VertxMeterFilter<T> T getFromRoutingContext(String key)
<T> T getValue(String key)
Copyright © 2020 JBoss by Red Hat. All rights reserved.