| org.slf4j.spi.MDCAdapter
All known Subclasses: org.slf4j.impl.Log4jMDCAdapter, org.slf4j.helpers.BasicMDCAdapter, org.slf4j.helpers.NOPMakerAdapter,
MDCAdapter | public interface MDCAdapter (Code) | | This interface abstracts the service offered by various MDC
implementations.
author: Ceki Gülcü since: 1.4.1 |
Method Summary | |
public void | clear() Clear all entries in the MDC. | public String | get(String key) Get the context identified by the key parameter. | public void | put(String key, String val) Put a context value (the val parameter) as identified with
the key parameter into the current thread's context map. | public void | remove(String key) Remove the the context identified by the key parameter. |
clear | public void clear()(Code) | | Clear all entries in the MDC.
|
get | public String get(String key)(Code) | | Get the context identified by the key parameter.
The key parameter cannot be null.
the string value identified by the key parameter. |
put | public void put(String key, String val)(Code) | | Put a context value (the val parameter) as identified with
the key parameter into the current thread's context map.
The key parameter cannot be null. The code>val parameter
can be null only if the underlying implementation supports it.
If the current thread does not have a context map it is created as a side
effect of this call.
|
remove | public void remove(String key)(Code) | | Remove the the context identified by the key parameter.
The key parameter cannot be null.
This method does nothing if there is no previous value
associated with key .
|
|
|