@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 |
isLargePayloadSupportEnabled()
Deprecated.
Instead use
PayloadStorageConfiguration.isPayloadSupportEnabled() |
void |
setLargePayloadSupportDisabled()
Deprecated.
Instead use
PayloadStorageConfiguration.setPayloadSupportDisabled() |
void |
setLargePayloadSupportEnabled(com.amazonaws.services.s3.AmazonS3 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(com.amazonaws.services.s3.AmazonS3 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 |
withCannedAccessControlList(com.amazonaws.services.s3.model.CannedAccessControlList cannedAccessControlList) |
ExtendedClientConfiguration |
withLargePayloadSupportDisabled()
Deprecated.
Instead use
withPayloadSupportDisabled() |
ExtendedClientConfiguration |
withLargePayloadSupportEnabled(com.amazonaws.services.s3.AmazonS3 s3,
String s3BucketName)
Deprecated.
Instead use
withPayloadSupportEnabled(AmazonS3, String) |
ExtendedClientConfiguration |
withLegacyReservedAttributeNameDisabled()
Disables the utilization legacy payload attribute name when sending messages.
|
ExtendedClientConfiguration |
withMessageSizeThreshold(int messageSizeThreshold)
Deprecated.
Instead use
withPayloadSizeThreshold(int) |
ExtendedClientConfiguration |
withPayloadSizeThreshold(int payloadSizeThreshold) |
ExtendedClientConfiguration |
withPayloadSupportDisabled() |
ExtendedClientConfiguration |
withPayloadSupportEnabled(com.amazonaws.services.s3.AmazonS3 s3,
String s3BucketName) |
ExtendedClientConfiguration |
withPayloadSupportEnabled(com.amazonaws.services.s3.AmazonS3 s3,
String s3BucketName,
boolean cleanupS3Payload)
Enables support for payload messages.
|
ExtendedClientConfiguration |
withSSEAwsKeyManagementParams(com.amazonaws.services.s3.model.SSEAwsKeyManagementParams sseAwsKeyManagementParams) |
getAmazonS3Client, getCannedAccessControlList, getPayloadSizeThreshold, getS3BucketName, getSSEAwsKeyManagementParams, isAlwaysThroughS3, isCannedAccessControlListDefined, isPayloadSupportEnabled, setAlwaysThroughS3, setCannedAccessControlList, setPayloadSizeThreshold, setPayloadSupportDisabled, setPayloadSupportEnabled, setSSEAwsKeyManagementParams
public ExtendedClientConfiguration()
public ExtendedClientConfiguration(ExtendedClientConfiguration other)
public void setPayloadSupportEnabled(com.amazonaws.services.s3.AmazonS3 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(com.amazonaws.services.s3.AmazonS3 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 boolean doesCleanupS3Payload()
public boolean usesLegacyReservedAttributeName()
public ExtendedClientConfiguration withAlwaysThroughS3(boolean alwaysThroughS3)
withAlwaysThroughS3
in class software.amazon.payloadoffloading.PayloadStorageConfiguration
public ExtendedClientConfiguration withPayloadSupportEnabled(com.amazonaws.services.s3.AmazonS3 s3, String s3BucketName)
withPayloadSupportEnabled
in class software.amazon.payloadoffloading.PayloadStorageConfiguration
public ExtendedClientConfiguration withSSEAwsKeyManagementParams(com.amazonaws.services.s3.model.SSEAwsKeyManagementParams sseAwsKeyManagementParams)
withSSEAwsKeyManagementParams
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 withCannedAccessControlList(com.amazonaws.services.s3.model.CannedAccessControlList cannedAccessControlList)
withCannedAccessControlList
in class software.amazon.payloadoffloading.PayloadStorageConfiguration
@Deprecated public void setLargePayloadSupportEnabled(com.amazonaws.services.s3.AmazonS3 s3, String s3BucketName)
setPayloadSupportEnabled(AmazonS3, 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(com.amazonaws.services.s3.AmazonS3 s3, String s3BucketName)
withPayloadSupportEnabled(AmazonS3, 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 © 2020. All rights reserved.