com.codingapi.tx.aop.bean.TxCompensateLocal Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tx-client Show documentation
Show all versions of tx-client Show documentation
tx-client project for Spring Boot
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;
private String type;
private int startState;
public int getStartState() {
return startState;
}
public void setStartState(int startState) {
this.startState = startState;
}
public String getGroupId() {
return groupId;
}
public void setGroupId(String groupId) {
this.groupId = groupId;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public static TxCompensateLocal current() {
return currentLocal.get();
}
public static void setCurrent(TxCompensateLocal current) {
currentLocal.set(current);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy