File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed
src/main/java/com/meitu/platform/lmstfy Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 7
7
<groupId >com.meitu</groupId >
8
8
<artifactId >java-lmstfy-client</artifactId >
9
9
<name >java-lmstfy-client</name >
10
- <version >1.0.1 </version >
10
+ <version >1.0.2 </version >
11
11
<description >Java client for LMSTFY</description >
12
12
<url >https://github.com/meitu/java-lmstfy-client</url >
13
13
Original file line number Diff line number Diff line change 13
13
*/
14
14
public class Example {
15
15
16
- private static String token = "01E2FQ865WA27WWP9NEWCQ08R3 " ;
16
+ private static String token = "01EXKH08T648VHWD64BND16CXR " ;
17
17
private static String host = "localhost" ;
18
18
private static int port = 7777 ;
19
19
private static String namespace = "sdk-test" ;
Original file line number Diff line number Diff line change @@ -16,11 +16,12 @@ public class Job {
16
16
private String jobID ;
17
17
@ SerializedName ("data" )
18
18
private String base64Data ;
19
- private int ttl ;
19
+ // use long type in order to prevent exceptions from decoding uint
20
+ private long ttl ;
20
21
@ SerializedName ("elapsed_ms" )
21
- private int elapsedMS ;
22
+ private long elapsedMS ;
22
23
@ SerializedName ("remain_tries" )
23
- private int remainTries ;
24
+ private long remainTries ;
24
25
private transient String data ;
25
26
26
27
public String getNamespace () {
@@ -55,23 +56,23 @@ public void setBase64Data(String data) {
55
56
this .base64Data = data ;
56
57
}
57
58
58
- public int getTtl () {
59
+ public long getTtl () {
59
60
return ttl ;
60
61
}
61
62
62
63
public void setTtl (int ttl ) {
63
64
this .ttl = ttl ;
64
65
}
65
66
66
- public int getElapsedMS () {
67
+ public long getElapsedMS () {
67
68
return elapsedMS ;
68
69
}
69
70
70
71
public void setElapsedMS (int elapsedMS ) {
71
72
this .elapsedMS = elapsedMS ;
72
73
}
73
74
74
- public int getRemainTries () {
75
+ public long getRemainTries () {
75
76
return remainTries ;
76
77
}
77
78
You can’t perform that action at this time.
0 commit comments