public class ExtendedClientConfiguration
extends java.lang.Object
Constructor and Description |
---|
ExtendedClientConfiguration() |
ExtendedClientConfiguration(ExtendedClientConfiguration other) |
Modifier and Type | Method and Description |
---|---|
AmazonS3 |
getAmazonS3Client()
Gets the Amazon S3 client which is being used for storing large-payload
messages.
|
int |
getMessageSizeThreshold()
Gets the message size threshold for storing message payloads in Amazon
S3.
|
java.lang.String |
getS3BucketName()
Gets the name of the S3 bucket which is being used for storing
large-payload messages.
|
boolean |
isAlwaysThroughS3()
Checks whether or not all messages regardless of their payload size are
being stored in Amazon S3.
|
boolean |
isLargePayloadSupportEnabled()
Check if the support for large-payload message if enabled.
|
void |
setAlwaysThroughS3(boolean alwaysThroughS3)
Sets whether or not all messages regardless of their payload size should
be stored in Amazon S3.
|
void |
setLargePayloadSupportDisabled()
Disables support for large-payload messages.
|
void |
setLargePayloadSupportEnabled(AmazonS3 s3,
java.lang.String s3BucketName)
Enables support for large-payload messages.
|
void |
setMessageSizeThreshold(int messageSizeThreshold)
Sets the message size threshold for storing message payloads in Amazon
S3.
|
ExtendedClientConfiguration |
withAlwaysThroughS3(boolean alwaysThroughS3)
Sets whether or not all messages regardless of their payload size should
be stored in Amazon S3.
|
ExtendedClientConfiguration |
withLargePayloadSupportDisabled()
Disables support for large-payload messages.
|
ExtendedClientConfiguration |
withLargePayloadSupportEnabled(AmazonS3 s3,
java.lang.String s3BucketName)
Enables support for large-payload messages.
|
ExtendedClientConfiguration |
withMessageSizeThreshold(int messageSizeThreshold)
Sets the message size threshold for storing message payloads in Amazon
S3.
|
public ExtendedClientConfiguration()
public ExtendedClientConfiguration(ExtendedClientConfiguration other)
public void setLargePayloadSupportEnabled(AmazonS3 s3, java.lang.String s3BucketName)
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.public ExtendedClientConfiguration withLargePayloadSupportEnabled(AmazonS3 s3, java.lang.String s3BucketName)
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.public void setLargePayloadSupportDisabled()
public ExtendedClientConfiguration withLargePayloadSupportDisabled()
public boolean isLargePayloadSupportEnabled()
public AmazonS3 getAmazonS3Client()
public java.lang.String getS3BucketName()
public void setMessageSizeThreshold(int messageSizeThreshold)
messageSizeThreshold
- Message size threshold to be used for storing in Amazon S3.
Default: 256KB.public ExtendedClientConfiguration withMessageSizeThreshold(int messageSizeThreshold)
messageSizeThreshold
- Message size threshold to be used for storing in Amazon S3.
Default: 256KB.public int getMessageSizeThreshold()
public void setAlwaysThroughS3(boolean alwaysThroughS3)
alwaysThroughS3
- Whether or not all messages regardless of their payload size
should be stored in Amazon S3. Default: falsepublic ExtendedClientConfiguration withAlwaysThroughS3(boolean alwaysThroughS3)
alwaysThroughS3
- Whether or not all messages regardless of their payload size
should be stored in Amazon S3. Default: falsepublic boolean isAlwaysThroughS3()