public interface AsyncConditionalReadWriteRecordAccessor<K extends java.lang.Comparable<K>> extends AsyncConditionalReadRecordAccessor<K>
ConditionalReadWriteRecordAccessor
.Modifier and Type | Method and Description |
---|---|
Operation<java.util.Optional<Record<K>>> |
delete()
An asynchronous equivalent to
ConditionalReadWriteRecordAccessor.delete() . |
default <T> Operation<java.util.Optional<T>> |
delete(java.util.function.Function<? super Record<K>,T> mapper)
An asynchronous equivalent to
ConditionalReadWriteRecordAccessor.delete(Function) . |
Operation<java.util.Optional<Tuple<Record<K>,Record<K>>>> |
update(UpdateOperation<? super K> transform)
An asynchronous equivalent to
ConditionalReadWriteRecordAccessor.update(UpdateOperation) . |
default <T> Operation<java.util.Optional<T>> |
update(UpdateOperation<? super K> transform,
java.util.function.BiFunction<? super Record<K>,? super Record<K>,T> bimapper)
An asynchronous equivalent to
ConditionalReadWriteRecordAccessor.update(UpdateOperation, BiFunction) . |
read, read
default <T> Operation<java.util.Optional<T>> update(UpdateOperation<? super K> transform, java.util.function.BiFunction<? super Record<K>,? super Record<K>,T> bimapper)
ConditionalReadWriteRecordAccessor.update(UpdateOperation, BiFunction)
.T
- the type returned by the function defined in the bimapper parameter.transform
- the mutating transformation to apply to the recordbimapper
- the function to apply to the combination of the record that existed before the update
and the record that resulted from the update. The first argument to the apply() method
will be the record that existed before the update and the second argument will be the
record that resulted from the update.Operation<java.util.Optional<Tuple<Record<K>,Record<K>>>> update(UpdateOperation<? super K> transform)
ConditionalReadWriteRecordAccessor.update(UpdateOperation)
.transform
- the mutating transformation to apply to the recorddefault <T> Operation<java.util.Optional<T>> delete(java.util.function.Function<? super Record<K>,T> mapper)
ConditionalReadWriteRecordAccessor.delete(Function)
.T
- the type returned by the function defined in the mapper parameter.mapper
- the function to apply to the deleted record.Operation<java.util.Optional<Record<K>>> delete()
ConditionalReadWriteRecordAccessor.delete()
.