public interface ThreadContextMap
ThreadContext.
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the context.
|
boolean |
containsKey(String
Determine if the key is in the context.
|
String |
get(String
Get the context identified by the
key parameter.
|
Map |
getCopy()
Get a non-
null mutable copy of current thread's context Map.
|
Map |
getImmutableMapOrNull()
Return an immutable view on the context Map or
null if the context map is empty.
|
boolean |
isEmpty()
Returns true if the Map is empty.
|
void |
put(String
Put a context value (the
o parameter) as identified with the
key parameter into the current thread's context map.
|
void |
remove(String
Remove the the context identified by the
key parameter.
|
void put(Stringkey, 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.
key - The key name.
value - The key value.
Stringget(String key)
key parameter.
This method has no side effects.
key - The key to locate.
void remove(Stringkey)
key parameter.
key - The key to remove.
void clear()
boolean containsKey(Stringkey)
key - The key to locate.
Map<String ,String > getCopy()
null mutable copy of current thread's context Map.
Map<String ,String > getImmutableMapOrNull()
null if the context map is empty.
null.
boolean isEmpty()