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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
package com.yanzuoguang.mq.vo;
import com.yanzuoguang.dao.TableAnnotation;
import com.yanzuoguang.util.helper.StringHelper;
import com.yanzuoguang.util.vo.InitDao;
import io.swagger.annotations.ApiModelProperty;
/**
* 通过Token找到所在服务器
*/
@TableAnnotation("queue_servertoken")
public class QueueServerTokenVo implements InitDao {
/**
* 编号
*/
@ApiModelProperty(notes = "编号")
@TableAnnotation("serverTokenId")
private String serverTokenId;
/**
* 服务Id
*/
@ApiModelProperty(notes = "服务Id")
@TableAnnotation("serverId")
private String serverId;
/**
* 消息编号
*/
@ApiModelProperty(notes = "消息编号")
@TableAnnotation("queueName")
private String queueName;
/**
* 标记Id
*/
@ApiModelProperty(notes = "标记Id")
@TableAnnotation("tokenId")
private String tokenId;
/**
* 版本号
*/
@ApiModelProperty(notes = "版本号")
@TableAnnotation("tokenVersion")
private String tokenVersion;
/**
* 修改时间
*/
@ApiModelProperty(notes = "修改时间")
@TableAnnotation("updateDate")
private String updateDate;
@Override
public void init() {
this.serverTokenId = StringHelper.getFirst(this.serverTokenId);
this.serverId = StringHelper.getFirst(this.serverId);
this.queueName = StringHelper.getFirst(this.queueName);
this.tokenId = StringHelper.getFirst(this.tokenId);
this.tokenVersion = StringHelper.getFirst(this.tokenVersion);
this.updateDate = StringHelper.getFirst(this.updateDate);
}
public String getServerTokenId() {
return serverTokenId;
}
public void setServerTokenId(String serverTokenId) {
this.serverTokenId = serverTokenId;
}
public String getServerId() {
return serverId;
}
public void setServerId(String serverId) {
this.serverId = serverId;
}
public String getQueueName() {
return queueName;
}
public void setQueueName(String queueName) {
this.queueName = queueName;
}
public String getTokenId() {
return tokenId;
}
public void setTokenId(String tokenId) {
this.tokenId = tokenId;
}
public String getTokenVersion() {
return tokenVersion;
}
public void setTokenVersion(String tokenVersion) {
this.tokenVersion = tokenVersion;
}
public String getUpdateDate() {
return updateDate;
}
public void setUpdateDate(String updateDate) {
this.updateDate = updateDate;
}
}