Skip to content

Commit

Permalink
Fix default value for Acknowledgement Shutdown Timeout and Listener S…
Browse files Browse the repository at this point in the history
…hutdown Timeout in docs (#1034)
  • Loading branch information
mt-ocado authored Feb 2, 2024
1 parent 249172c commit ac66aa0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/src/main/asciidoc/sqs.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -821,13 +821,13 @@ See <<Container Lifecycle>>.

|`listenerShutdownTimeout`
|0 - undefined
|10 seconds
|20 seconds
|The amount of time the container will wait for a queue to complete message processing before attempting to forcefully shutdown.
See <<Container Lifecycle>>.

|`acknowledgementShutdownTimeout`
|0 - undefined
|10 seconds
|20 seconds
|The amount of time the container will wait for acknowledgements to complete for a queue after message processing has ended.
See <<Container Lifecycle>>.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,17 +109,19 @@ public interface ContainerOptionsBuilder<B extends ContainerOptionsBuilder<B, O>

/**
* Set the maximum amount of time that the container should wait for tasks to finish before shutting down. Default
* is 10 seconds.
* is 20 seconds.
*
* @param shutdownTimeout the timeout.
* @return this instance.
*/
B listenerShutdownTimeout(Duration shutdownTimeout);

/**
* Set the maximum amount of time that the container should wait for batched acknowledgements to finish before *
* shutting down. Note that this timeout starts counting after listener processing is done or timed out. Default *
* is 20 seconds. * @param acknowledgementShutdownTimeout the timeout.
* Set the maximum amount of time that the container should wait for batched acknowledgements to finish before
* shutting down. Note that this timeout starts counting after listener processing is done or timed out. Default is
* 20 seconds.
*
* @param acknowledgementShutdownTimeout the timeout.
* @return this instance.
*/
B acknowledgementShutdownTimeout(Duration acknowledgementShutdownTimeout);
Expand Down

0 comments on commit ac66aa0

Please sign in to comment.