-
Notifications
You must be signed in to change notification settings - Fork 149
Expand file tree
/
Copy pathAmazonSQSMessagingClient.java
More file actions
37 lines (21 loc) · 1.54 KB
/
AmazonSQSMessagingClient.java
File metadata and controls
37 lines (21 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package com.amazon.sqs.javamessaging;
import jakarta.jms.JMSException;
import software.amazon.awssdk.awscore.AwsClient;
import software.amazon.awssdk.services.sqs.model.*;
public interface AmazonSQSMessagingClient {
AwsClient getAmazonSQSClient();
void deleteMessage(DeleteMessageRequest deleteMessageRequest) throws JMSException;
DeleteMessageBatchResponse deleteMessageBatch(DeleteMessageBatchRequest deleteMessageBatchRequest) throws JMSException;
SendMessageResponse sendMessage(SendMessageRequest sendMessageRequest) throws JMSException;
boolean queueExists(String queueName) throws JMSException;
boolean queueExists(String queueName, String queueOwnerAccountId) throws JMSException;
GetQueueUrlResponse getQueueUrl(String queueName) throws JMSException;
GetQueueUrlResponse getQueueUrl(String queueName, String queueOwnerAccountId) throws JMSException;
GetQueueUrlResponse getQueueUrl(GetQueueUrlRequest getQueueUrlRequest) throws JMSException;
CreateQueueResponse createQueue(String queueName) throws JMSException;
CreateQueueResponse createQueue(CreateQueueRequest createQueueRequest) throws JMSException;
ReceiveMessageResponse receiveMessage(ReceiveMessageRequest receiveMessageRequest) throws JMSException;
void changeMessageVisibility(ChangeMessageVisibilityRequest changeMessageVisibilityRequest) throws JMSException;
ChangeMessageVisibilityBatchResponse changeMessageVisibilityBatch(
ChangeMessageVisibilityBatchRequest changeMessageVisibilityBatchRequest) throws JMSException;
}