Class DynamoDbMetadataStore
java.lang.Object
io.awspring.cloud.dynamodb.DynamoDbMetadataStore
- All Implemented Interfaces:
InitializingBean,org.springframework.integration.metadata.ConcurrentMetadataStore,org.springframework.integration.metadata.MetadataStore
public class DynamoDbMetadataStore
extends Object
implements org.springframework.integration.metadata.ConcurrentMetadataStore, InitializingBean
The
ConcurrentMetadataStore for the DynamoDbAsyncClient.- Since:
- 4.0
- Author:
- Artem Bilan, Asiel Caballero
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe "SpringIntegrationMetadataStore" default name for the metadata table in the DynamoDB.static final StringThe "metadataKey" as a default name for a partition key in the table.static final StringThe "expireAt" as a default name for time-to-live attribute.static final StringThe "metadataValue" as a default name for value attribute. -
Constructor Summary
ConstructorsConstructorDescriptionDynamoDbMetadataStore(software.amazon.awssdk.services.dynamodb.DynamoDbAsyncClient dynamoDB) DynamoDbMetadataStore(software.amazon.awssdk.services.dynamodb.DynamoDbAsyncClient dynamoDB, String tableName) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidputIfAbsent(String key, String value) booleanvoidsetBillingMode(software.amazon.awssdk.services.dynamodb.model.BillingMode billingMode) voidsetCreateTableDelay(int createTableDelay) voidsetCreateTableRetries(int createTableRetries) voidsetReadCapacity(long readCapacity) voidsetTimeToLive(int timeToLive) Configure a period in seconds for item expiration.voidsetWriteCapacity(long writeCapacity) toString()
-
Field Details
-
DEFAULT_TABLE_NAME
The "SpringIntegrationMetadataStore" default name for the metadata table in the DynamoDB.- See Also:
-
KEY
The "metadataKey" as a default name for a partition key in the table.- See Also:
-
VALUE
The "metadataValue" as a default name for value attribute.- See Also:
-
TTL
The "expireAt" as a default name for time-to-live attribute.- See Also:
-
-
Constructor Details
-
DynamoDbMetadataStore
public DynamoDbMetadataStore(software.amazon.awssdk.services.dynamodb.DynamoDbAsyncClient dynamoDB) -
DynamoDbMetadataStore
public DynamoDbMetadataStore(software.amazon.awssdk.services.dynamodb.DynamoDbAsyncClient dynamoDB, String tableName)
-
-
Method Details
-
setCreateTableRetries
public void setCreateTableRetries(int createTableRetries) -
setCreateTableDelay
public void setCreateTableDelay(int createTableDelay) -
setBillingMode
public void setBillingMode(software.amazon.awssdk.services.dynamodb.model.BillingMode billingMode) -
setReadCapacity
public void setReadCapacity(long readCapacity) -
setWriteCapacity
public void setWriteCapacity(long writeCapacity) -
setTimeToLive
public void setTimeToLive(int timeToLive) Configure a period in seconds for item expiration. If it is configured to non-positive value (<= 0), the TTL is disabled on the table.- Parameters:
timeToLive- period in seconds for item expiration.- Since:
- 2.0
- See Also:
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceInitializingBean
-
put
-
get
-
putIfAbsent
-
replace
-
remove
-
toString
-