All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.com.antcloud.api.common.trace.TracerContext Maven / Gradle / Ivy

Go to download

Ant Fin Tech API SDK For Java Copyright (c) 2015-present Alipay.com, https://www.alipay.com

The newest version!
/**
 * Alipay.com Inc.
 * Copyright (c) 2004-2021 All Rights Reserved.
 */
package cn.com.antcloud.api.common.trace;

import java.util.HashMap;
import java.util.Map;

public class TracerContext {
    /** 以扁平化的 Map 存放各种可透传的数据 */
    private final Map context = new HashMap();

    public void put(String key, String value) {
        context.put(key, value);
    }

    public String get(String key) {
        return context.get(key);
    }

    public void putAll(Map map) {
        context.putAll(map);
    }

    public Map getContextAsMap() {
        return context;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy