MCPcopy
hub / github.com/dianping/cat / CatContextImpl

Class CatContextImpl

integration/context/CatContextImpl.java:13–26  ·  view source on GitHub ↗

Cat.context接口实现类,用于context调用链传递,相关方法Cat.logRemoteCall()和Cat.logRemoteServer() @author soar @date 2019-01-10

Source from the content-addressed store, hash-verified

11 * @date 2019-01-10
12 */
13public class CatContextImpl implements Cat.Context{
14
15 private Map<String, String> properties = new HashMap<>(16);
16
17 @Override
18 public void addProperty(String key, String value) {
19 properties.put(key, value);
20 }
21
22 @Override
23 public String getProperty(String key) {
24 return properties.get(key);
25 }
26}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected