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:
- 
                        
bucketStringthe bucket in Riak
 
withBucketType
        - 
                        
bucketType 
Set the bucket type. If not supplied, 'default' is used.
Parameters:
- 
                        
bucketTypeStringthe bucket type in riak
 
withCallback
        - 
                        
callback 
Set the callback to be executed when the operation completes.
Parameters:
- 
                        
callbackFunctionThe callback to be executed when the operation completes.
- 
                                    
errStringAn error message. Will be null on no error.
 - 
                                    
responseBooleanthe 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:
- 
                        
dwNumberthe DW value.
 
withKey
        - 
                        
key 
Set the key.
Parameters:
- 
                        
keyStringthe key in riak.
 
withPr
        - 
                        
pr 
Set the PR value. If not set the bucket default is used.
Parameters:
- 
                        
prNumberthe 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:
- 
                        
pwNumberthe PW value.
 
withR
        - 
                        
r 
Set the R value. If not set the bucket default is used.
Parameters:
- 
                        
rNumberthe R value.
 
withRw
        - 
                        
rw 
Set the RW value. Quorum for both operations (get and put) involved in deleting an object .
Parameters:
- 
                        
rwNumberthe RW value.
 
withTimeout
        - 
                        
timeout 
Set a timeout for this operation.
Parameters:
- 
                        
timeoutNumbera timeout in milliseconds.
 
withVClock
        - 
                        
vclock 
Set the vector clock. If not set siblings may be created depending on bucket properties.
Parameters:
- 
                        
vclockBuffera 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:
- 
                        
wNumberthe W value.
 
