DeleteValue.Builder Class
A builder for constructing DeleteValue instances.
Rather than having to manually construct the options and instantiating a DeleteValue directly, this builder may be used.
var deleteValue = new DeleteValue.Builder()
.withBucket('myBucket')
.withKey('myKey')
.withVClock(vclock)
.withCallback(callback)
.build();
Constructor
DeleteValue.Builder
()
Item Index
Methods
build
()
DeleteValue
Construct a DeleteValue command.
Returns:
an instance of DeleteValue
withBucket
-
bucket
Set the bucket.
Parameters:
-
bucket
Stringthe bucket in Riak
withBucketType
-
bucketType
Set the bucket type. If not supplied, 'default' is used.
Parameters:
-
bucketType
Stringthe bucket type in riak
withCallback
-
callback
Set the callback to be executed when the operation completes.
Parameters:
-
callback
FunctionThe callback to be executed when the operation completes.
-
err
StringAn error message. Will be null on no error.
-
response
Booleanthe response from Riak. Will be true unless there was an error.
-
withDw
-
dw
Set the DW value. How many replicas to commit to durable storage before returning a successful response. If not set the bucket default is used.
Parameters:
-
dw
Numberthe DW value.
withKey
-
key
Set the key.
Parameters:
-
key
Stringthe key in riak.
withPr
-
pr
Set the PR value. If not set the bucket default is used.
Parameters:
-
pr
Numberthe PR value.
withPw
-
pw
Set the PW value. How many primary nodes must be up when the write is attempted. If not set the bucket default is used.
Parameters:
-
pw
Numberthe PW value.
withR
-
r
Set the R value. If not set the bucket default is used.
Parameters:
-
r
Numberthe R value.
withRw
-
rw
Set the RW value. Quorum for both operations (get and put) involved in deleting an object .
Parameters:
-
rw
Numberthe RW value.
withTimeout
-
timeout
Set a timeout for this operation.
Parameters:
-
timeout
Numbera timeout in milliseconds.
withVClock
-
vclock
Set the vector clock. If not set siblings may be created depending on bucket properties.
Parameters:
-
vclock
Buffera vector clock returned from a previous fetch
withW
-
w
Set the W value. How many replicas to write to before returning a successful response. If not set the bucket default is used.
Parameters:
-
w
Numberthe W value.