Interface BatchExecutionStrategy
- All Known Implementing Classes:
SequentialBatchExecutionStrategy
public interface BatchExecutionStrategy
Strategy interface for executing batch publish operations to SNS.
Implementations of this interface handle the actual communication with SNS to publish a batch of messages to a topic.
- Since:
- 4.1.0
- Author:
- Matej Nedic
-
Method Summary
Modifier and TypeMethodDescriptionsend(software.amazon.awssdk.arns.Arn topicArn, Collection<software.amazon.awssdk.services.sns.model.PublishBatchRequestEntry> entries) Sends a batch of messages to the specified SNS topic.
-
Method Details
-
send
BatchResult send(software.amazon.awssdk.arns.Arn topicArn, Collection<software.amazon.awssdk.services.sns.model.PublishBatchRequestEntry> entries) Sends a batch of messages to the specified SNS topic.Executes the batch publish operation and returns results containing both successful message IDs and any errors that occurred.
- Parameters:
topicArn- The ARN of the SNS topic to publish toentries- Collection of batch request entries to publish- Returns:
- BatchResult containing successful results and any errors
-