public interface ContextProvider
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes all existing values from thread context.
|
String |
get(String key)
Gets a value by key from thread context.
|
Map<String,String> |
getMapping()
Gets a read-only copy with all values from thread context.
|
void |
put(String key,
Object value)
Stores a value in thread context.
|
void |
remove(String key)
Removes a value from thread context.
|
Map<String,String> getMapping()
String get(String key)
key
- Key of mappingnull
void put(String key, Object value)
key
- Key of mappingvalue
- Value of mappingvoid remove(String key)
key
- Key of mappingvoid clear()
Copyright © 2024. All rights reserved.