@ThreadSafe public interface DynamoDbEnhancedClientExtension
Multiple extensions can be used with the enhanced client, but the order in which they are loaded is important. For instance one extension may overwrite the value of an attribute that another extension then includes in a checksum calculation.
Modifier and Type | Method and Description |
---|---|
default ReadModification |
afterRead(DynamoDbExtensionContext.AfterRead context)
This hook is called just after an operation that has read data from the database.
|
default WriteModification |
beforeWrite(DynamoDbExtensionContext.BeforeWrite context)
This hook is called just before an operation is going to write data to the database.
|
default WriteModification beforeWrite(DynamoDbExtensionContext.BeforeWrite context)
context
- The DynamoDbExtensionContext.BeforeWrite
context containing the state of the execution.WriteModification
object that can alter the behavior of the write operation.default ReadModification afterRead(DynamoDbExtensionContext.AfterRead context)
context
- The DynamoDbExtensionContext.AfterRead
context containing the state of the execution.ReadModification
object that can alter the results of a read operation.Copyright © 2022. All rights reserved.