EventListener, org.springframework.context.ApplicationListener<org.springframework.context.event.ApplicationContextEvent>, org.springframework.data.repository.core.support.RepositoryProxyPostProcessorpublic class Entity2DynamoDBTableSynchronizer<T,ID> extends EntityInformationProxyPostProcessor<T,ID> implements org.springframework.data.repository.core.support.RepositoryProxyPostProcessor, org.springframework.context.ApplicationListener<org.springframework.context.event.ApplicationContextEvent>
Entity2DDL| Constructor | Description |
|---|---|
Entity2DynamoDBTableSynchronizer(com.amazonaws.services.dynamodbv2.AmazonDynamoDB amazonDynamoDB,
com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapper mapper,
String mode,
String gsiProjectionType,
long readCapacity,
long writeCapacity) |
|
Entity2DynamoDBTableSynchronizer(com.amazonaws.services.dynamodbv2.AmazonDynamoDB amazonDynamoDB,
com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapper mapper,
Entity2DDL mode) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
onApplicationEvent(org.springframework.context.event.ApplicationContextEvent event) |
|
protected void |
registeredEntity(DynamoDBEntityInformation<T,ID> entityInformation) |
|
protected void |
synchronize(DynamoDBEntityInformation<T,ID> entityInformation,
org.springframework.context.event.ApplicationContextEvent event) |
postProcesspublic Entity2DynamoDBTableSynchronizer(com.amazonaws.services.dynamodbv2.AmazonDynamoDB amazonDynamoDB,
com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapper mapper,
Entity2DDL mode)
@Autowired
public Entity2DynamoDBTableSynchronizer(com.amazonaws.services.dynamodbv2.AmazonDynamoDB amazonDynamoDB,
com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapper mapper,
@Value("${spring.data.dynamodb.entity2ddl.auto:none}")
String mode,
@Value("${spring.data.dynamodb.entity2ddl.gsiProjectionType:ALL}")
String gsiProjectionType,
@Value("${spring.data.dynamodb.entity2ddl.readCapacity:10}")
long readCapacity,
@Value("${spring.data.dynamodb.entity2ddl.writeCapacity:1}")
long writeCapacity)
protected void registeredEntity(DynamoDBEntityInformation<T,ID> entityInformation)
registeredEntity in class EntityInformationProxyPostProcessor<T,ID>public void onApplicationEvent(org.springframework.context.event.ApplicationContextEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<T>protected void synchronize(DynamoDBEntityInformation<T,ID> entityInformation, org.springframework.context.event.ApplicationContextEvent event) throws com.amazonaws.services.dynamodbv2.util.TableUtils.TableNeverTransitionedToStateException, InterruptedException
com.amazonaws.services.dynamodbv2.util.TableUtils.TableNeverTransitionedToStateExceptionInterruptedExceptionCopyright © 2018–2019. All rights reserved.