java.lang.Object
io.helidon.logging.slf4j.Slf4jMdcPropagator
- All Implemented Interfaces:
DataPropagationProvider<Map<String,String>>
public class Slf4jMdcPropagator
extends Object
implements DataPropagationProvider<Map<String,String>>
This is propagator of Slf4j MDC values between different threads.
This class is loaded and used via SPI.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClears the propagated data from the new thread when it finishes.data()Return data that should be propagated.voidpropagateData(Map<String, String> data) Propagates the data to be used by the new thread.
-
Constructor Details
-
Slf4jMdcPropagator
public Slf4jMdcPropagator()
-
-
Method Details
-
data
Description copied from interface:DataPropagationProviderReturn data that should be propagated.- Specified by:
datain interfaceDataPropagationProvider<Map<String,String>> - Returns:
- data for propagation
-
propagateData
Description copied from interface:DataPropagationProviderPropagates the data to be used by the new thread.- Specified by:
propagateDatain interfaceDataPropagationProvider<Map<String,String>> - Parameters:
data- data for propagation
-
clearData
Description copied from interface:DataPropagationProviderClears the propagated data from the new thread when it finishes.- Specified by:
clearDatain interfaceDataPropagationProvider<Map<String,String>> - Parameters:
data- data for propagation
-