-
Notifications
You must be signed in to change notification settings - Fork 28
/
AmazonSQSResponder.java
25 lines (19 loc) · 801 Bytes
/
AmazonSQSResponder.java
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
package com.amazonaws.services.sqs;
import software.amazon.awssdk.services.sqs.SqsClient;
public interface AmazonSQSResponder {
SqsClient getAmazonSQS();
/**
* Tests whether the given message was sent using
* {@link AmazonSQSRequester#sendMessageAndGetResponse} or
* {@link AmazonSQSRequester#sendMessageAndGetResponseAsync}.
*/
public boolean isResponseMessageRequested(MessageContent requestMessage);
/**
* Given a message that was sent using
* {@link AmazonSQSRequester#sendMessageAndGetResponse} or
* {@link AmazonSQSRequester#sendMessageAndGetResponseAsync},
* sends the given message as its response.
*/
public void sendResponseMessage(MessageContent requestMessage, MessageContent response);
public void shutdown();
}