1048b156
Suraputt Suntimitr
Template
|
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
|
package th.co.ais.ssbsrfc.instance;
import ec02.utils.AppLog;
public class RetryIns {
private int countRetry = 0;
private int max = 0;
// private EquinoxRawData eqx = null;
private String url = null;
public RetryIns(int max, /*EquinoxRawData eqx,*/ String url) {
super();
this.max = max;
this.countRetry = 0;
// this.eqx = eqx;
this.url = url;
}
public boolean isRetry(EC02Instance ec02Instance, String key)
{
boolean isBool = false;
if (this.max > this.countRetry) {
this.countRetry++;
AppLog.d("## RETRY MESSAGE MAX:" + this.getMax() + " COUNT RETRY:" + this.getCountRetry());
isBool = true;
} else {
ec02Instance.getAFInstance().getDicRetry().remove(key);
}
return isBool;
}
public int getCountRetry() {
return countRetry;
}
public void setCountRetry(int countRetry) {
this.countRetry = countRetry;
}
public int getMax() {
return max;
}
public void setMax(int max) {
this.max = max;
}
// public EquinoxRawData getEqx() {
// return eqx;
// }
// public void setEqx(EquinoxRawData eqx) {
// this.eqx = eqx;
// }
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
}
|