Skip to content

//tempest2/app.cash.tempest2/AsyncView

AsyncView

interface AsyncView<K : Any, I : Any>

Inheritors

AsyncLogicalTable
AsyncInlineView

Functions

Name Summary
delete [jvm]
open suspend fun delete(item: I, deleteExpression: Expression? = null): I?
Deletes item from its DynamoDB table using deleteExpression. Any options specified in the deleteExpression parameter will be overlaid on any constraints due to versioned attributes.
deleteAsync [jvm]
open fun deleteAsync(item: I): CompletableFuture<I?>
abstract fun deleteAsync(item: I, deleteExpression: Expression?): CompletableFuture<I?>
deleteKey [jvm]
open suspend fun deleteKey(key: K, deleteExpression: Expression? = null): I?
Deletes the item identified by key from its DynamoDB table using deleteExpression. Any options specified in the deleteExpression parameter will be overlaid on any constraints due to versioned attributes.
deleteKeyAsync [jvm]
open fun deleteKeyAsync(key: K): CompletableFuture<I?>
abstract fun deleteKeyAsync(key: K, deleteExpression: Expression?): CompletableFuture<I?>
load [jvm]
open suspend fun load(key: K, consistentReads: Boolean = false): I?
Returns an item whose keys match those of the prototype key object given, or null if no such item exists.
[jvm]
open suspend fun load(key: K, consistentReads: Boolean = false, returnConsumedCapacity: ReturnConsumedCapacity = ReturnConsumedCapacity.TOTAL): Pair<I?, ConsumedCapacity?>
loadAsync [jvm]
open fun loadAsync(key: K): CompletableFuture<I?>
abstract fun loadAsync(key: K, consistentReads: Boolean): CompletableFuture<I?>
abstract fun loadAsync(key: K, consistentReads: Boolean, returnConsumedCapacity: ReturnConsumedCapacity): CompletableFuture<Pair<I?, ConsumedCapacity?>>
save [jvm]
open suspend fun save(item: I, saveExpression: Expression? = null): Void
Saves an item in DynamoDB. This method uses DynamoDbClient.putItem to clear and replace all attributes, including unmodeled ones, on save. Partial update, i.e. DynamoDbClient.updateItem, is not supported yet.
saveAsync [jvm]
open fun saveAsync(item: I): CompletableFuture<Void>
abstract fun saveAsync(item: I, saveExpression: Expression?): CompletableFuture<Void>