1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
| package com.codingapi.tx.framework.task;
|
| /**
| * create by lorne on 2017/12/21
| */
| public enum TaskState {
|
| rollback(0),commit(1),networkError(-1),networkTimeOut(-2),connectionError(-3);
|
|
| /**
| * 数据状态:
| * 1:commit
| * 0:rollback
| * -1:network error
| * -2:network time out
| * -3:execute Connection error
| * @return state
| */
|
| private int code;
|
| TaskState(int code) {
| this.code = code;
| }
|
|
| public int getCode() {
| return code;
| }
| }
|
|