public class ThreadUtils extends Object
| Constructor and Description |
|---|
ThreadUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Runnable |
withMdc(ContextAware<?> request,
Runnable runnable) |
static <U> Supplier<U> |
withMdc(ContextAware<?> request,
Supplier<U> supplier) |
static <U,T> Function<ApiHttpResponse<T>,U> |
withMdc(Function<ApiHttpResponse<T>,U> fn) |
static Runnable |
withMdc(Runnable runnable) |
static <U> Supplier<U> |
withMdc(Supplier<U> supplier) |
public ThreadUtils()
public static <U,T> Function<ApiHttpResponse<T>,U> withMdc(Function<ApiHttpResponse<T>,U> fn)
public static Runnable withMdc(ContextAware<?> request, Runnable runnable)
public static <U> Supplier<U> withMdc(ContextAware<?> request, Supplier<U> supplier)