Created
May 3, 2020 00:40
-
-
Save bijukunjummen/fa5318637ca59f4d076d10d64939e817 to your computer and use it in GitHub Desktop.
This file contains 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