-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Upgrade to java sdk v2
- Loading branch information
Showing
41 changed files
with
1,157 additions
and
1,030 deletions.
There are no files selected for viewing
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
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
230 changes: 119 additions & 111 deletions
230
src/main/java/com/amazonaws/services/sqs/AmazonSQSIdleQueueDeletingClient.java
Large diffs are not rendered by default.
Oops, something went wrong.
18 changes: 9 additions & 9 deletions
18
src/main/java/com/amazonaws/services/sqs/AmazonSQSRequester.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
package com.amazonaws.services.sqs; | ||
|
||
import software.amazon.awssdk.services.sqs.SqsClient; | ||
import software.amazon.awssdk.services.sqs.model.Message; | ||
import software.amazon.awssdk.services.sqs.model.SendMessageRequest; | ||
|
||
import java.util.concurrent.CompletableFuture; | ||
import java.util.concurrent.TimeUnit; | ||
import java.util.concurrent.TimeoutException; | ||
|
||
import com.amazonaws.services.sqs.AmazonSQS; | ||
import com.amazonaws.services.sqs.model.Message; | ||
import com.amazonaws.services.sqs.model.SendMessageRequest; | ||
|
||
public interface AmazonSQSRequester { | ||
|
||
AmazonSQS getAmazonSQS(); | ||
SqsClient getAmazonSQS(); | ||
|
||
/** | ||
* Sends a message and waits the given amount of time for | ||
* the response message. | ||
*/ | ||
public Message sendMessageAndGetResponse(SendMessageRequest request, | ||
int timeout, TimeUnit unit) throws TimeoutException; | ||
public Message sendMessageAndGetResponse(SendMessageRequest request, | ||
int timeout, TimeUnit unit) throws TimeoutException; | ||
|
||
/** | ||
* Sends a message and returns a <tt>CompletableFuture</tt> | ||
* that will be completed with the response message when it arrives. | ||
*/ | ||
public CompletableFuture<Message> sendMessageAndGetResponseAsync(SendMessageRequest request, | ||
int timeout, TimeUnit unit); | ||
public CompletableFuture<Message> sendMessageAndGetResponseAsync(SendMessageRequest request, | ||
int timeout, TimeUnit unit); | ||
|
||
public void shutdown(); | ||
} |
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
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
6 changes: 3 additions & 3 deletions
6
src/main/java/com/amazonaws/services/sqs/AmazonSQSResponder.java
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
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
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
Oops, something went wrong.