java.lang.Object
io.helidon.logging.jul.JulMdcPropagator
- All Implemented Interfaces:
DataPropagationProvider<Map<String,String>>
This is propagator of JUL 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
-
JulMdcPropagator
public JulMdcPropagator()
-
-
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
-