spring-cloud-aws
spring-cloud-aws copied to clipboard
QueueMessageChannel.receive() implementation doesn't align with PollableChannel 's definition
Type: Bug
Component:
SQS
Describe the bug
- According to javadoc of PollableChannel, MessageChannel.INDEFINITE_TIMEOUT should be used to represent indefinite timeout (instead of 0).
- The timeout parameter of PollableChannel.receive() method represents the timeout in milliseconds (so it should be transformed into seconds when building the ReceiveMessageRequest).
This PR betters shows the suggested fix: #769