Last active
May 3, 2020 00:40
-
-
Save bijukunjummen/0a68300e820c7b0e622b6ad517932c17 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| val receiveMessageRequest: ReceiveMessageRequest = ReceiveMessageRequest.builder() | |
| .queueUrl(queueUrl) | |
| .maxNumberOfMessages(5) | |
| .waitTimeSeconds(10) | |
| .build() | |
| val messages: CompletableFuture<List<Message>> = sqsAsyncClient | |
| .receiveMessage(receiveMessageRequest) | |
| .thenApply { result -> result.messages() } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment