Skip to content

Commit

Permalink
checkstyle rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyu1 committed Jun 9, 2018
1 parent ee6e0f7 commit 9013bbb
Show file tree
Hide file tree
Showing 79 changed files with 1,245 additions and 1,532 deletions.
Expand Up @@ -15,6 +15,7 @@
* along with this distribution; if not, see <http://www.gnu.org/licenses/>.
*
*/

package com.raincat.common.bean;

import lombok.AllArgsConstructor;
Expand All @@ -25,33 +26,38 @@
import java.io.Serializable;

/**
* TransactionInvocation.
* @author xiaoyu
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TransactionInvocation implements Serializable {

private static final long serialVersionUID = 7722060715819141844L;

/**
* 事务执行器
* 事务执行器.
*/
@Getter
private Class targetClazz;

/**
* 方法
* 方法.
*/
@Getter
private String method;

/**
* 参数值
* 参数值.
*/
@Getter
private Object[] argumentValues;

/**
* 参数类型
* 参数类型.
*/
@Getter
private Class[] argumentTypes;


}
Expand Up @@ -15,8 +15,8 @@
* along with this distribution; if not, see <http://www.gnu.org/licenses/>.
*
*/
package com.raincat.common.bean;

package com.raincat.common.bean;

import com.raincat.common.enums.TransactionStatusEnum;
import lombok.Data;
Expand All @@ -25,57 +25,56 @@
import java.util.Date;

/**
* TransactionRecover.
* @author xiaoyu
*/
@Data
public class TransactionRecover implements Serializable {

private static final long serialVersionUID = -3262858695515766275L;

/**
* 主键id
* 主键id.
*/
private String id;


/**
* 重试次数
* 重试次数.
*/
private int retriedCount = 0;
private int retriedCount;

/**
* 创建时间
* 创建时间.
*/
private Date createTime = new Date();


/**
* 创建时间
* 创建时间.
*/
private Date lastTime = new Date();

/**
* 版本控制 防止并发问题
* 版本控制 防止并发问题.
*/
private int version = 1;

/**
* 事务组id
* 事务组id.
*/
private String groupId;

/**
* 任务id
* 任务id.
*/
private String taskId;

/**
* 事务执行方法
* 事务执行方法.
*/
private TransactionInvocation transactionInvocation;


/**
* {@linkplain TransactionStatusEnum}
* 状态. {@linkplain TransactionStatusEnum}
*/
private int status;

Expand Down

This file was deleted.

Expand Up @@ -15,44 +15,43 @@
* along with this distribution; if not, see <http://www.gnu.org/licenses/>.
*
*/

package com.raincat.common.bean;

import com.raincat.common.enums.PropagationEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
* TxTransactionInfo.
* @author xiaoyu
*/
@AllArgsConstructor
public class TxTransactionInfo {

/**
* 补偿方法对象
* 补偿方法对象.
*/
@Getter
private TransactionInvocation invocation;


/**
* 分布式事务组
* 分布式事务组.
*/
@Getter
private String txGroupId;

/**
* 事务补偿id
* 事务补偿id.
*/
@Getter
private String compensationId;


/**
* 事务等待时间
* 事务等待时间.
*/
@Getter
private int waitMaxTime = 60;

private int waitMaxTime;

@Getter
private PropagationEnum propagationEnum;
Expand Down
Expand Up @@ -15,6 +15,7 @@
* along with this distribution; if not, see <http://www.gnu.org/licenses/>.
*
*/

package com.raincat.common.bean.adapter;

import lombok.Data;
Expand All @@ -23,6 +24,7 @@
import java.io.Serializable;

/**
* MongoAdapter.
* @author xiaoyu
*/
@Data
Expand Down

0 comments on commit 9013bbb

Please sign in to comment.