public class MDataEntryAction
extends java.lang.Object
Constructor and Description |
---|
MDataEntryAction(net.maidsafe.api.AppHandle appHandle) |
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.CompletableFuture<java.lang.Void> |
delete(NativeHandle actionHandle,
byte[] key,
long version)
Store a new delete action to remove an existing entry
|
java.util.concurrent.CompletableFuture |
insert(NativeHandle actionHandle,
byte[] key,
byte[] value)
Store a new insert action for a new entry
|
java.util.concurrent.CompletableFuture<NativeHandle> |
newEntryAction()
Get a new handle to perform Mutable Data entry actions
|
java.util.concurrent.CompletableFuture |
update(NativeHandle actionHandle,
byte[] key,
byte[] value,
long version)
Store a new update action for updating an existing entry
|
public java.util.concurrent.CompletableFuture<NativeHandle> newEntryAction()
NativeHandle
instancepublic java.util.concurrent.CompletableFuture insert(NativeHandle actionHandle, byte[] key, byte[] value)
actionHandle
- The action handle as NativeHandle
key
- The key to be insertedvalue
- The value to be insertedpublic java.util.concurrent.CompletableFuture update(NativeHandle actionHandle, byte[] key, byte[] value, long version)
actionHandle
- The action handle as NativeHandle
key
- The key to be updatedvalue
- The new valueversion
- The next version of the entrypublic java.util.concurrent.CompletableFuture<java.lang.Void> delete(NativeHandle actionHandle, byte[] key, long version)
actionHandle
- The action handle as NativeHandle
key
- The key of the entry to be deletedversion
- The next version of the entry