| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final ThreadLocalMDC. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Map | |
| public Map | |
| public String | get(String
the key key)Implements org. Get the value for a key, or |
| public Object | getObject(String
the key key)Implements org. Get the value for a key, or |
| public boolean | isEmpty()
Implements org. Returns |
| public String | put(String
the key key, String the new value value)Implements org. Set the value of a key, returning the old value (if any) or |
| public Object | putObject(String
the key key, Object the new value value)Implements org. Set the value of a key, returning the old value (if any) or |
| public String | |
| public Object | removeObject(String
the key key)Implements org. Remove a key. |
| mdc | back to summary |
|---|---|
| private static final ThreadLocalMDC. | |
| ThreadLocalMDC | back to summary |
|---|---|
| pack-priv ThreadLocalMDC() | |
| clear | back to summary |
|---|---|
| public void clear() Implements org. Doc from org. Clear the current MDC map.
| |
| copy | back to summary |
|---|---|
| public Map Implements org. Doc from org. Get a copy of the MDC map. This is a relatively expensive operation. | |
| copyObject | back to summary |
|---|---|
| public Map Implements org. Doc from org. Get a copy of the MDC map. This is a relatively expensive operation. | |
| get | back to summary |
|---|---|
| public String get(String key) Implements org. Doc from org. Get the value for a key, or | |
| getObject | back to summary |
|---|---|
| public Object getObject(String key) Implements org. Doc from org. Get the value for a key, or | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements org. Doc from org. Returns
| |
| put | back to summary |
|---|---|
| public String put(String key, String value) Implements org. Doc from org. Set the value of a key, returning the old value (if any) or | |
| putObject | back to summary |
|---|---|
| public Object putObject(String key, Object value) Implements org. Doc from org. Set the value of a key, returning the old value (if any) or | |
| remove | back to summary |
|---|---|
| public String remove(String key) Implements org. Doc from org. Remove a key. | |
| removeObject | back to summary |
|---|---|
| public Object removeObject(String key) Implements org. Doc from org. Remove a key. | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| protected FastCopyHashMap | childValue(final FastCopyHashMap<String, Object>
the parent thread's value parentValue)Overrides java. Computes the child's initial value for this inheritable thread-local variable as a function of the parent's value at the time the child thread is created. |
| protected FastCopyHashMap | initialValue()
Overrides java. Returns the current thread's "initial value" for this thread-local variable. |
| Holder | back to summary |
|---|---|
| private Holder() | |
| childValue | back to summary |
|---|---|
| protected FastCopyHashMap Overrides java. Doc from java. Computes the child's initial value for this inheritable thread-local variable as a function of the parent's value at the time the child thread is created. This method is called from within the parent thread before the child is started. This method merely returns its input argument, and should be overridden if a different behavior is desired.
| |
| initialValue | back to summary |
|---|---|
| protected FastCopyHashMap Overrides java. Doc from java. Returns the current thread's "initial value" for this
thread-local variable. This method will be invoked the first
time a thread accesses the variable with the
| |