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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Clears the propagated data from the new thread when it finishes.data()
Return data that should be propagated.void
propagateData
(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:DataPropagationProvider
Return data that should be propagated.- Specified by:
data
in interfaceDataPropagationProvider<Map<String,
String>> - Returns:
- data for propagation
-
propagateData
Description copied from interface:DataPropagationProvider
Propagates the data to be used by the new thread.- Specified by:
propagateData
in interfaceDataPropagationProvider<Map<String,
String>> - Parameters:
data
- data for propagation
-
clearData
Description copied from interface:DataPropagationProvider
Clears the propagated data from the new thread when it finishes.- Specified by:
clearData
in interfaceDataPropagationProvider<Map<String,
String>> - Parameters:
data
- data for propagation
-