org.apache.logging.log4j.spi

Interface ObjectThreadContextMap

    • Method Detail

      • getValue

        <V> V getValue(String key)
        Returns the Object value for the specified key, or null if the specified key does not exist in this collection.
        Parameters:
        key - the key whose value to return
        Returns:
        the value for the specified key or null
      • putValue

        <V> void putValue(String key,
                          V value)
        Puts the specified key-value pair into the collection.
        Parameters:
        key - the key to add or remove. Keys may be null.
        value - the value to add. Values may be null.
      • putAllValues

        <V> void putAllValues(Map<String,V> values)
        Puts all given key-value pairs into the collection.
        Parameters:
        values - the map of key-value pairs to add

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.