@NotThreadSafe
public class ExtendedClientConfiguration
extends software.amazon.payloadoffloading.PayloadStorageConfiguration
Constructor and Description |
---|
ExtendedClientConfiguration() |
ExtendedClientConfiguration(ExtendedClientConfiguration other) |
Modifier and Type | Method and Description |
---|---|
boolean |
doesCleanupS3Payload()
Checks whether or not clean up large objects in S3 is enabled.
|
int |
getMessageSizeThreshold()
Deprecated.
Instead use
PayloadStorageConfiguration.getPayloadSizeThreshold() |
boolean |
ignoresPayloadNotFound()
Checks whether or not messages should be removed from Amazon SQS
when payloads are not found in Amazon S3.
|
boolean |
isLargePayloadSupportEnabled()
Deprecated.
Instead use
PayloadStorageConfiguration.isPayloadSupportEnabled() |
void |
setIgnorePayloadNotFound(boolean ignorePayloadNotFound)
Sets whether or not messages should be removed from Amazon SQS
when payloads are not found in Amazon S3.
|
void |
setLargePayloadSupportDisabled()
Deprecated.
Instead use
PayloadStorageConfiguration.setPayloadSupportDisabled() |
void |
setLargePayloadSupportEnabled(software.amazon.awssdk.services.s3.S3Client s3,
String s3BucketName)
Deprecated.
|
void |
setLegacyReservedAttributeNameDisabled()
Disables the utilization legacy payload attribute name when sending messages.
|
void |
setMessageSizeThreshold(int messageSizeThreshold)
Deprecated.
Instead use
PayloadStorageConfiguration.setPayloadSizeThreshold(int) |
void |
setPayloadSupportEnabled(software.amazon.awssdk.services.s3.S3Client s3,
String s3BucketName,
boolean cleanupS3Payload)
Enables support for payload messages.
|
boolean |
usesLegacyReservedAttributeName()
Checks whether or not the configuration uses the legacy reserved attribute name.
|
ExtendedClientConfiguration |
withAlwaysThroughS3(boolean alwaysThroughS3) |
ExtendedClientConfiguration |
withIgnorePayloadNotFound(boolean ignorePayloadNotFound)
Sets whether or not messages should be removed from Amazon SQS
when payloads are not found in Amazon S3.
|
ExtendedClientConfiguration |
withLargePayloadSupportDisabled()
Deprecated.
Instead use
withPayloadSupportDisabled() |
ExtendedClientConfiguration |
withLargePayloadSupportEnabled(software.amazon.awssdk.services.s3.S3Client s3,
String s3BucketName)
Deprecated.
Instead use
withPayloadSupportEnabled(S3Client, String) |
ExtendedClientConfiguration |
withLegacyReservedAttributeNameDisabled()
Disables the utilization legacy payload attribute name when sending messages.
|
ExtendedClientConfiguration |
withMessageSizeThreshold(int messageSizeThreshold)
Deprecated.
Instead use
withPayloadSizeThreshold(int) |
ExtendedClientConfiguration |
withObjectCannedACL(software.amazon.awssdk.services.s3.model.ObjectCannedACL objectCannedACL) |
ExtendedClientConfiguration |
withPayloadSizeThreshold(int payloadSizeThreshold) |
ExtendedClientConfiguration |
withPayloadSupportDisabled() |
ExtendedClientConfiguration |
withPayloadSupportEnabled(software.amazon.awssdk.services.s3.S3Client s3,
String s3BucketName) |
ExtendedClientConfiguration |
withPayloadSupportEnabled(software.amazon.awssdk.services.s3.S3Client s3,
String s3BucketName,
boolean cleanupS3Payload)
Enables support for payload messages.
|
ExtendedClientConfiguration |
withServerSideEncryption(software.amazon.payloadoffloading.ServerSideEncryptionStrategy serverSideEncryption) |
getObjectCannedACL, getPayloadSizeThreshold, getS3BucketName, getS3Client, getServerSideEncryptionStrategy, isAlwaysThroughS3, isObjectCannedACLDefined, isPayloadSupportEnabled, setAlwaysThroughS3, setObjectCannedACL, setPayloadSizeThreshold, setPayloadSupportDisabled, setPayloadSupportEnabled, setServerSideEncryptionStrategy
public ExtendedClientConfiguration()
public ExtendedClientConfiguration(ExtendedClientConfiguration other)
public void setPayloadSupportEnabled(software.amazon.awssdk.services.s3.S3Client s3, String s3BucketName, boolean cleanupS3Payload)
s3
- Amazon S3 client which is going to be used for storing
payload messages.s3BucketName
- Name of the bucket which is going to be used for storing
payload messages. The bucket must be already created and
configured in s3.cleanupS3Payload
- If set to true, would handle deleting the S3 object as part
of deleting the message from SQS queue. Otherwise, would not
attempt to delete the object from S3. If opted to not delete S3
objects its the responsibility to the message producer to handle
the clean up appropriately.public ExtendedClientConfiguration withPayloadSupportEnabled(software.amazon.awssdk.services.s3.S3Client s3, String s3BucketName, boolean cleanupS3Payload)
s3
- Amazon S3 client which is going to be used for storing
payload messages.s3BucketName
- Name of the bucket which is going to be used for storing
payload messages. The bucket must be already created and
configured in s3.cleanupS3Payload
- If set to true, would handle deleting the S3 object as part
of deleting the message from SQS queue. Otherwise, would not
attempt to delete the object from S3. If opted to not delete S3
objects its the responsibility to the message producer to handle
the clean up appropriately.public void setLegacyReservedAttributeNameDisabled()
public ExtendedClientConfiguration withLegacyReservedAttributeNameDisabled()
public void setIgnorePayloadNotFound(boolean ignorePayloadNotFound)
ignorePayloadNotFound
- Whether or not messages should be removed from Amazon SQS
when payloads are not found in Amazon S3. Default: falsepublic ExtendedClientConfiguration withIgnorePayloadNotFound(boolean ignorePayloadNotFound)
ignorePayloadNotFound
- Whether or not messages should be removed from Amazon SQS
when payloads are not found in Amazon S3. Default: falsepublic boolean doesCleanupS3Payload()
public boolean usesLegacyReservedAttributeName()
public boolean ignoresPayloadNotFound()
public ExtendedClientConfiguration withAlwaysThroughS3(boolean alwaysThroughS3)
withAlwaysThroughS3
in class software.amazon.payloadoffloading.PayloadStorageConfiguration
public ExtendedClientConfiguration withPayloadSupportEnabled(software.amazon.awssdk.services.s3.S3Client s3, String s3BucketName)
withPayloadSupportEnabled
in class software.amazon.payloadoffloading.PayloadStorageConfiguration
public ExtendedClientConfiguration withObjectCannedACL(software.amazon.awssdk.services.s3.model.ObjectCannedACL objectCannedACL)
withObjectCannedACL
in class software.amazon.payloadoffloading.PayloadStorageConfiguration
public ExtendedClientConfiguration withPayloadSizeThreshold(int payloadSizeThreshold)
withPayloadSizeThreshold
in class software.amazon.payloadoffloading.PayloadStorageConfiguration
public ExtendedClientConfiguration withPayloadSupportDisabled()
withPayloadSupportDisabled
in class software.amazon.payloadoffloading.PayloadStorageConfiguration
public ExtendedClientConfiguration withServerSideEncryption(software.amazon.payloadoffloading.ServerSideEncryptionStrategy serverSideEncryption)
withServerSideEncryption
in class software.amazon.payloadoffloading.PayloadStorageConfiguration
@Deprecated public void setLargePayloadSupportEnabled(software.amazon.awssdk.services.s3.S3Client s3, String s3BucketName)
setPayloadSupportEnabled(S3Client, String, boolean)
s3
- Amazon S3 client which is going to be used for storing
large-payload messages.s3BucketName
- Name of the bucket which is going to be used for storing
large-payload messages. The bucket must be already created and
configured in s3.@Deprecated public ExtendedClientConfiguration withLargePayloadSupportEnabled(software.amazon.awssdk.services.s3.S3Client s3, String s3BucketName)
withPayloadSupportEnabled(S3Client, String)
s3
- Amazon S3 client which is going to be used for storing
large-payload messages.s3BucketName
- Name of the bucket which is going to be used for storing
large-payload messages. The bucket must be already created and
configured in s3.@Deprecated public void setLargePayloadSupportDisabled()
PayloadStorageConfiguration.setPayloadSupportDisabled()
@Deprecated public ExtendedClientConfiguration withLargePayloadSupportDisabled()
withPayloadSupportDisabled()
@Deprecated public boolean isLargePayloadSupportEnabled()
PayloadStorageConfiguration.isPayloadSupportEnabled()
@Deprecated public void setMessageSizeThreshold(int messageSizeThreshold)
PayloadStorageConfiguration.setPayloadSizeThreshold(int)
messageSizeThreshold
- Message size threshold to be used for storing in Amazon S3.
Default: 256KB.@Deprecated public ExtendedClientConfiguration withMessageSizeThreshold(int messageSizeThreshold)
withPayloadSizeThreshold(int)
messageSizeThreshold
- Message size threshold to be used for storing in Amazon S3.
Default: 256KB.@Deprecated public int getMessageSizeThreshold()
PayloadStorageConfiguration.getPayloadSizeThreshold()
Copyright © 2021. All rights reserved.