Package com.alibaba.ttl.log4j2
Class TtlThreadContextMap
- java.lang.Object
-
- com.alibaba.ttl.log4j2.TtlThreadContextMap
-
- All Implemented Interfaces:
org.apache.logging.log4j.spi.ThreadContextMap
public class TtlThreadContextMap extends Object implements org.apache.logging.log4j.spi.ThreadContextMap
- Author:
- Jerry Lee (oldratlee at gmail dot com)
- See Also:
DefaultThreadContextMap
-
-
Constructor Summary
Constructors Constructor Description TtlThreadContextMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(String key)booleanequals(Object obj)Stringget(String key)Map<String,String>getCopy()Map<String,String>getImmutableMapOrNull()inthashCode()booleanisEmpty()voidput(String key, String value)voidremove(String key)StringtoString()
-
-
-
Method Detail
-
put
public void put(String key, String value)
- Specified by:
putin interfaceorg.apache.logging.log4j.spi.ThreadContextMap
-
get
public String get(String key)
- Specified by:
getin interfaceorg.apache.logging.log4j.spi.ThreadContextMap
-
remove
public void remove(String key)
- Specified by:
removein interfaceorg.apache.logging.log4j.spi.ThreadContextMap
-
clear
public void clear()
- Specified by:
clearin interfaceorg.apache.logging.log4j.spi.ThreadContextMap
-
containsKey
public boolean containsKey(String key)
- Specified by:
containsKeyin interfaceorg.apache.logging.log4j.spi.ThreadContextMap
-
getCopy
public Map<String,String> getCopy()
- Specified by:
getCopyin interfaceorg.apache.logging.log4j.spi.ThreadContextMap
-
getImmutableMapOrNull
public Map<String,String> getImmutableMapOrNull()
- Specified by:
getImmutableMapOrNullin interfaceorg.apache.logging.log4j.spi.ThreadContextMap
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceorg.apache.logging.log4j.spi.ThreadContextMap
-
-