org.apache.logging.log4j.spi

Interface ThreadContextMap2

    • Method Detail

      • putAll

        void putAll(Map<String,String> map)
        Puts all given context map entries into the current thread's context map.

        If the current thread does not have a context map it is created as a side effect.

        Parameters:
        map - The map.
        Since:
        2.7
      • getReadOnlyContextData

        StringMap getReadOnlyContextData()
        Returns the context data for reading. Note that regardless of whether the returned context data has been frozen (made read-only) or not, callers should not attempt to modify the returned data structure.
        Returns:
        the StringMap

Copyright © 1999-2023 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.