Package org.apache.logging.log4j.spi
Interface ThreadContextMap2
-
- All Superinterfaces:
ThreadContextMap
- All Known Subinterfaces:
CleanableThreadContextMap
,ObjectThreadContextMap
public interface ThreadContextMap2 extends ThreadContextMap
Extension service provider interface to implement additional custom MDC behavior forThreadContext
. Consider implementingCleanableThreadContextMap
instead.- Since:
- 2.7
- See Also:
ThreadContextMap
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringMap
getReadOnlyContextData()
Returns the context data for reading.void
putAll(Map<String,String> map)
Puts all given context map entries into the current thread's context map.-
Methods inherited from interface org.apache.logging.log4j.spi.ThreadContextMap
clear, containsKey, get, getCopy, getImmutableMapOrNull, isEmpty, put, remove
-
-