Skip to content

Commit ff115d2

Browse files
committed
Add docstrings to CallbackConfig.
1 parent 4d4d317 commit ff115d2

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

sdk/src/main/java/com/amazonaws/lambda/durable/CallbackConfig.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,20 @@ private CallbackConfig(Builder builder) {
1717
this.serDes = builder.serDes;
1818
}
1919

20+
/**
21+
* Returns the maximum duration to wait for the callback to complete.
22+
*
23+
* @return the timeout duration, or null if not specified
24+
*/
2025
public Duration timeout() {
2126
return timeout;
2227
}
2328

29+
/**
30+
* Returns the maximum duration between heartbeats before the callback is considered failed.
31+
*
32+
* @return the heartbeat timeout duration, or null if not specified
33+
*/
2434
public Duration heartbeatTimeout() {
2535
return heartbeatTimeout;
2636
}

0 commit comments

Comments
 (0)