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

com.codingapi.tx.aop.bean.TxCompensateLocal Maven / Gradle / Ivy

package com.codingapi.tx.aop.bean;

/**
 * 分布式事务远程调用控制对象
 * Created by lorne on 2017/6/5.
 */
public class TxCompensateLocal {

    private final static ThreadLocal currentLocal = new ThreadLocal();

    private String groupId;


    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public static TxCompensateLocal current() {
        return currentLocal.get();
    }

    public static void setCurrent(TxCompensateLocal current) {
        currentLocal.set(current);
    }


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy