Skip to content

Commit bea9374

Browse files
Apply suggestions from code review
Co-authored-by: Scott Gerring <[email protected]>
1 parent 5220391 commit bea9374

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed

powertools-large-messages/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
<plugins>
130130
<plugin>
131131
<artifactId>maven-surefire-plugin</artifactId>
132-
<version>3.1.2</version>
132+
<version>${maven-surefire-plugin.version}</version>
133133
<configuration>
134134
<environmentVariables>
135135
<AWS_REGION>eu-central-1</AWS_REGION>

powertools-large-messages/src/main/java/software/amazon/lambda/powertools/largemessages/LargeMessage.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050

5151
/**
5252
* Specify if S3 objects must be deleted after being processed (default = true)
53+
Alternatively you might consider using S3 lifecycle policies to remove the payloads automatically after a period of time.
5354
*/
5455
boolean deleteS3Object() default true;
5556
}

powertools-large-messages/src/main/java/software/amazon/lambda/powertools/largemessages/LargeMessageConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import static software.amazon.lambda.powertools.core.internal.LambdaConstants.AWS_REGION_ENV;
99

1010
/**
11-
* Singleton instance for Large Message Config.
11+
* Singleton instance for Large Message Config. We need this to provide a way to customize the S3 client configuration used by the annotation.
1212
* <br/>
1313
* Optional: Use it in your Lambda constructor to pass a custom {@link S3Client} to the {@link software.amazon.lambda.powertools.largemessages.internal.LargeMessageProcessor}
1414
* <br/>

powertools-large-messages/src/main/java/software/amazon/lambda/powertools/largemessages/internal/LargeMessageProcessorFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import java.util.Optional;
77

8-
public class LargeMessageProcessorFactory {
8+
class LargeMessageProcessorFactory {
99

1010
private LargeMessageProcessorFactory() {
1111
// not intended to be instantiated

powertools-large-messages/src/main/java/software/amazon/lambda/powertools/largemessages/internal/LargeSNSMessageProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import java.util.HashMap;
77
import java.util.Map;
88

9-
public class LargeSNSMessageProcessor extends LargeMessageProcessor<SNSRecord> {
9+
class LargeSNSMessageProcessor extends LargeMessageProcessor<SNSRecord> {
1010

1111
@Override
1212
protected String getMessageId(SNSRecord message) {

powertools-large-messages/src/main/java/software/amazon/lambda/powertools/largemessages/internal/LargeSQSMessageProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import java.util.Map;
1818
import java.util.Optional;
1919

20-
public class LargeSQSMessageProcessor extends LargeMessageProcessor<SQSMessage> {
20+
class LargeSQSMessageProcessor extends LargeMessageProcessor<SQSMessage> {
2121

2222
private static final Logger LOG = LoggerFactory.getLogger(LargeSQSMessageProcessor.class);
2323
private static final String LEGACY_RESERVED_ATTRIBUTE_NAME = "SQSLargePayloadSize";

0 commit comments

Comments
 (0)