1818package com .cloud .async ;
1919
2020import java .util .Date ;
21-
2221import javax .persistence .Column ;
2322import javax .persistence .Entity ;
2423import javax .persistence .GeneratedValue ;
@@ -40,36 +39,31 @@ public class SyncQueueVO {
4039 @ Column (name ="sync_objtype" )
4140
4241 private String syncObjType ;
43-
42+
4443 @ Column (name ="sync_objid" )
4544 private Long syncObjId ;
46-
45+
4746 @ Column (name ="queue_proc_number" )
4847 private Long lastProcessNumber ;
49-
50- @ Column (name ="queue_proc_time" )
51- @ Temporal (TemporalType .TIMESTAMP )
52- private Date lastProcessTime ;
53-
54- @ Column (name ="queue_proc_msid" )
55- private Long lastProcessMsid ;
56-
48+
5749 @ Column (name ="created" )
5850 @ Temporal (TemporalType .TIMESTAMP )
5951 private Date created ;
60-
52+
6153 @ Column (name ="last_updated" )
6254 @ Temporal (TemporalType .TIMESTAMP )
6355 private Date lastUpdated ;
64-
56+
57+ @ Column (name ="queue_size" )
58+ private long queueSize = 0 ;
59+
60+ @ Column (name ="queue_size_limit" )
61+ private long queueSizeLimit = 0 ;
62+
6563 public Long getId () {
6664 return id ;
6765 }
6866
69- public void setId (Long id ) {
70- this .id = id ;
71- }
72-
7367 public String getSyncObjType () {
7468 return syncObjType ;
7569 }
@@ -94,22 +88,6 @@ public void setLastProcessNumber(Long number) {
9488 lastProcessNumber = number ;
9589 }
9690
97- public Date getLastProcessTime () {
98- return lastProcessTime ;
99- }
100-
101- public void setLastProcessTime (Date lastProcessTime ) {
102- this .lastProcessTime = lastProcessTime ;
103- }
104-
105- public Long getLastProcessMsid () {
106- return lastProcessMsid ;
107- }
108-
109- public void setLastProcessMsid (Long lastProcessMsid ) {
110- this .lastProcessMsid = lastProcessMsid ;
111- }
112-
11391 public Date getCreated () {
11492 return created ;
11593 }
@@ -125,18 +103,33 @@ public Date getLastUpdated() {
125103 public void setLastUpdated (Date lastUpdated ) {
126104 this .lastUpdated = lastUpdated ;
127105 }
128-
106+
129107 public String toString () {
130108 StringBuffer sb = new StringBuffer ();
131109 sb .append ("SyncQueueVO {id:" ).append (getId ());
132110 sb .append (", syncObjType: " ).append (getSyncObjType ());
133111 sb .append (", syncObjId: " ).append (getSyncObjId ());
134- sb .append (", lastProcessMsid: " ).append (getLastProcessMsid ());
135112 sb .append (", lastProcessNumber: " ).append (getLastProcessNumber ());
136- sb .append (", lastProcessTime: " ).append (getLastProcessTime ());
137113 sb .append (", lastUpdated: " ).append (getLastUpdated ());
138114 sb .append (", created: " ).append (getCreated ());
115+ sb .append (", count: " ).append (getQueueSize ());
139116 sb .append ("}" );
140117 return sb .toString ();
141118 }
119+
120+ public long getQueueSize () {
121+ return queueSize ;
122+ }
123+
124+ public void setQueueSize (long queueSize ) {
125+ this .queueSize = queueSize ;
126+ }
127+
128+ public long getQueueSizeLimit () {
129+ return queueSizeLimit ;
130+ }
131+
132+ public void setQueueSizeLimit (long queueSizeLimit ) {
133+ this .queueSizeLimit = queueSizeLimit ;
134+ }
142135}
0 commit comments