Skip to content

Commit 429dc03

Browse files
authored
remove invoke timeout (#159)
1 parent bd511af commit 429dc03

1 file changed

Lines changed: 3 additions & 17 deletions

File tree

sdk/src/main/java/software/amazon/lambda/durable/InvokeConfig.java

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,19 @@
22
// SPDX-License-Identifier: Apache-2.0
33
package software.amazon.lambda.durable;
44

5-
import java.time.Duration;
65
import software.amazon.lambda.durable.serde.SerDes;
76

87
public class InvokeConfig {
9-
private final Duration timeout;
108
private final SerDes payloadSerDes;
119
private final SerDes resultSerDes;
1210
private final String tenantId;
1311

1412
public InvokeConfig(Builder builder) {
15-
this.timeout = builder.timeout;
1613
this.payloadSerDes = builder.payloadSerDes;
1714
this.resultSerDes = builder.resultSerDes;
1815
this.tenantId = builder.tenantId;
1916
}
2017

21-
public Duration timeout() {
22-
return this.timeout;
23-
}
24-
2518
public SerDes payloadSerDes() {
2619
return this.payloadSerDes;
2720
}
@@ -35,22 +28,20 @@ public String tenantId() {
3528
}
3629

3730
public static Builder builder() {
38-
return new Builder(null, null, null, null);
31+
return new Builder(null, null, null);
3932
}
4033

4134
public Builder toBuilder() {
42-
return new Builder(timeout, payloadSerDes, resultSerDes, tenantId);
35+
return new Builder(payloadSerDes, resultSerDes, tenantId);
4336
}
4437

4538
/** Builder for creating InvokeConfig instances. */
4639
public static class Builder {
47-
private Duration timeout;
4840
private SerDes payloadSerDes;
4941
private SerDes resultSerDes;
5042
private String tenantId;
5143

52-
private Builder(Duration timeout, SerDes payloadSerDes, SerDes resultSerDes, String tenantId) {
53-
this.timeout = timeout;
44+
private Builder(SerDes payloadSerDes, SerDes resultSerDes, String tenantId) {
5445
this.payloadSerDes = payloadSerDes;
5546
this.resultSerDes = resultSerDes;
5647
this.tenantId = tenantId;
@@ -61,11 +52,6 @@ public Builder tenantId(String tenantId) {
6152
return this;
6253
}
6354

64-
public Builder timeout(Duration timeout) {
65-
this.timeout = timeout;
66-
return this;
67-
}
68-
6955
/**
7056
* Sets a custom serializer for the invoke operation payload.
7157
*

0 commit comments

Comments
 (0)