Skip to content

Commit 00c4c4c

Browse files
committed
fix: change ttl type in Job from int to long
1 parent c9fe328 commit 00c4c4c

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<groupId>com.meitu</groupId>
88
<artifactId>java-lmstfy-client</artifactId>
99
<name>java-lmstfy-client</name>
10-
<version>1.0.1</version>
10+
<version>1.0.2</version>
1111
<description>Java client for LMSTFY</description>
1212
<url>https://github.com/meitu/java-lmstfy-client</url>
1313

src/main/java/com/meitu/platform/lmstfy/Example.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*/
1414
public class Example {
1515

16-
private static String token = "01E2FQ865WA27WWP9NEWCQ08R3";
16+
private static String token = "01EXKH08T648VHWD64BND16CXR";
1717
private static String host = "localhost";
1818
private static int port = 7777;
1919
private static String namespace = "sdk-test";

src/main/java/com/meitu/platform/lmstfy/Job.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ public class Job {
1616
private String jobID;
1717
@SerializedName("data")
1818
private String base64Data;
19-
private int ttl;
19+
// use long type in order to prevent exceptions from decoding uint
20+
private long ttl;
2021
@SerializedName("elapsed_ms")
21-
private int elapsedMS;
22+
private long elapsedMS;
2223
@SerializedName("remain_tries")
23-
private int remainTries;
24+
private long remainTries;
2425
private transient String data;
2526

2627
public String getNamespace() {
@@ -55,23 +56,23 @@ public void setBase64Data(String data) {
5556
this.base64Data = data;
5657
}
5758

58-
public int getTtl() {
59+
public long getTtl() {
5960
return ttl;
6061
}
6162

6263
public void setTtl(int ttl) {
6364
this.ttl = ttl;
6465
}
6566

66-
public int getElapsedMS() {
67+
public long getElapsedMS() {
6768
return elapsedMS;
6869
}
6970

7071
public void setElapsedMS(int elapsedMS) {
7172
this.elapsedMS = elapsedMS;
7273
}
7374

74-
public int getRemainTries() {
75+
public long getRemainTries() {
7576
return remainTries;
7677
}
7778

0 commit comments

Comments
 (0)