public class BatchWriteItemOperation extends Object implements DatabaseOperation<BatchWriteItemRequest,BatchWriteItemResponse,BatchWriteResult>
Modifier and Type | Method and Description |
---|---|
Function<BatchWriteItemRequest,CompletableFuture<BatchWriteItemResponse>> |
asyncServiceCall(DynamoDbAsyncClient dynamoDbAsyncClient)
Provides a function for making the low level non-blocking asynchronous SDK call to DynamoDb.
|
static BatchWriteItemOperation |
create(BatchWriteItemEnhancedRequest request) |
BatchWriteItemRequest |
generateRequest(DynamoDbEnhancedClientExtension extension)
This method generates the request that needs to be sent to a low level
DynamoDbClient . |
Function<BatchWriteItemRequest,BatchWriteItemResponse> |
serviceCall(DynamoDbClient dynamoDbClient)
Provides a function for making the low level synchronous SDK call to DynamoDb.
|
BatchWriteResult |
transformResponse(BatchWriteItemResponse response,
DynamoDbEnhancedClientExtension extension)
Takes the response object returned by the actual DynamoDb call and maps it into a higher level abstracted
result object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute, executeAsync
public static BatchWriteItemOperation create(BatchWriteItemEnhancedRequest request)
public BatchWriteItemRequest generateRequest(DynamoDbEnhancedClientExtension extension)
DatabaseOperation
DynamoDbClient
.generateRequest
in interface DatabaseOperation<BatchWriteItemRequest,BatchWriteItemResponse,BatchWriteResult>
extension
- A DynamoDbEnhancedClientExtension
that may modify the request of this operation. A null
value here will result in no modifications.DynamoDbClient
call to perform the operation.public BatchWriteResult transformResponse(BatchWriteItemResponse response, DynamoDbEnhancedClientExtension extension)
DatabaseOperation
transformResponse
in interface DatabaseOperation<BatchWriteItemRequest,BatchWriteItemResponse,BatchWriteResult>
response
- The response object returned by the DynamoDb call for this operation.extension
- A DynamoDbEnhancedClientExtension
that may modify the result of this operation. A null
value here will result in no modifications.public Function<BatchWriteItemRequest,BatchWriteItemResponse> serviceCall(DynamoDbClient dynamoDbClient)
DatabaseOperation
serviceCall
in interface DatabaseOperation<BatchWriteItemRequest,BatchWriteItemResponse,BatchWriteResult>
dynamoDbClient
- A low level DynamoDbClient
to make the call against.public Function<BatchWriteItemRequest,CompletableFuture<BatchWriteItemResponse>> asyncServiceCall(DynamoDbAsyncClient dynamoDbAsyncClient)
DatabaseOperation
asyncServiceCall
in interface DatabaseOperation<BatchWriteItemRequest,BatchWriteItemResponse,BatchWriteResult>
dynamoDbAsyncClient
- A low level DynamoDbAsyncClient
to make the call against.CompletableFuture
for the response object.Copyright © 2021. All rights reserved.