|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.logging.log4j.spi.DefaultThreadContextMap
public class DefaultThreadContextMap
Constructor Summary | |
---|---|
DefaultThreadContextMap(boolean useMap)
|
Method Summary | |
---|---|
void |
clear()
Clear the context. |
boolean |
containsKey(String key)
Determine if the key is in the context. |
Map<String,String> |
get()
Return the context Map. |
String |
get(String key)
Get the context identified by the key parameter. |
Map<String,String> |
getContext()
Get a copy of current thread's context Map. |
boolean |
isEmpty()
Returns true if the Map is empty. |
void |
put(String key,
String value)
Put a context value (the o parameter) as identified
with the key parameter into the current thread's
context map. |
void |
remove(String key)
Remove the the context identified by the key
parameter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultThreadContextMap(boolean useMap)
Method Detail |
---|
public void put(String key, String value)
o
parameter) as identified
with the key
parameter into the current thread's
context map.
If the current thread does not have a context map it is created as a side effect.
put
in interface ThreadContextMap
key
- The key name.value
- The key value.public String get(String key)
key
parameter.
This method has no side effects.
get
in interface ThreadContextMap
key
- The key to locate.
public void remove(String key)
key
parameter.
remove
in interface ThreadContextMap
key
- The key to remove.public void clear()
clear
in interface ThreadContextMap
public boolean containsKey(String key)
containsKey
in interface ThreadContextMap
key
- The key to locate.
public Map<String,String> getContext()
getContext
in interface ThreadContextMap
public Map<String,String> get()
get
in interface ThreadContextMap
public boolean isEmpty()
isEmpty
in interface ThreadContextMap
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2013 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.