ThreadContextMap implementation used when either of system properties disableThreadContextMap or .
disableThreadContext is true. This implementation does nothing.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | containsKey(final String
The key to locate. key)Implements org. Determines if the key is in the context. |
| public String | get(final String
The key to locate. key)Implements org. Gets the context identified by the |
| public Map | getCopy()
Implements org. Gets a non- |
| public Map | getImmutableMapOrNull()
Implements org. Returns an immutable view on the context Map or |
| public boolean | isEmpty()
Implements org. Returns true if the Map is empty. |
| public void | put(final String
The key name. key, final String The key value. value)Implements org. Puts a context value (the |
| public void | remove(final String
The key to remove. key)Implements org. Removes the context identified by the |
| NoOpThreadContextMap | back to summary |
|---|---|
| public NoOpThreadContextMap() | |
| clear | back to summary |
|---|---|
| public void clear() Implements org. Doc from org. Clears the context.
| |
| containsKey | back to summary |
|---|---|
| public boolean containsKey(final String key) Implements org. Doc from org. Determines if the key is in the context. | |
| get | back to summary |
|---|---|
| public String get(final String key) Implements org. Doc from org. Gets the context identified by the This method has no side effects. | |
| getCopy | back to summary |
|---|---|
| public Map Implements org. Doc from org. Gets a non- | |
| getImmutableMapOrNull | back to summary |
|---|---|
| public Map Implements org. Doc from org. Returns an immutable view on the context Map or | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements org. Doc from org. Returns true if the Map is empty.
| |
| put | back to summary |
|---|---|
| public void put(final String key, final String value) Implements org. Doc from org. Puts a context value (the If the current thread does not have a context map it is created as a side effect. | |
| remove | back to summary |
|---|---|
| public void remove(final String key) Implements org. Doc from org. Removes the context identified by the | |