public class MDCUtil extends Object
Constructor and Description |
---|
MDCUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
clear()
Clears current MDC context.
|
static <T> T |
execWithValues(Map<String,Object> values,
Callable<T> code)
Executes the given code with the given values in MDC.
|
static void |
execWithValues(Map<String,Object> values,
Runnable code)
Executes the given code with the given values in MDC.
|
static <T> T |
execWithValues(String key,
Object value,
Callable<T> code)
Executes the given code with the given value in MDC.
|
public static void execWithValues(Map<String,Object> values, Runnable code)
values
- the values.code
- the code.public static <T> T execWithValues(String key, Object value, Callable<T> code)
key
- the value key.value
- the value.code
- the code.public static <T> T execWithValues(Map<String,Object> values, Callable<T> code)
values
- the values.code
- the code.public static void clear()
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.