FetchCounter.Builder Class
A builder for constructing FetchCounter instances.
Rather than having to manually construct the options and instantiating a FetchCounter directly, this builder may be used.
var fetch = new FetchCounter.Builder()
                 .withBucketType('myBucketType')
                 .withBucket('myBucket')
                 .withKey('myKey')
                 .withCallback(myCallback)
                 .build();
Constructor
FetchCounter.Builder
        ()
    
    Item Index
Methods
withBasicQuorum
        - 
                        
useBasicQuorum 
Set the basic_quorum value. The parameter controls whether a read request should return early in some fail cases. E.g. If a quorum of nodes has already returned notfound/error, don't wait around for the rest.
Parameters:
- 
                        
useBasicQuorumBooleanthe basic_quorum value.
 
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 execute
- 
                                    
errStringAn error message. Will be null if no error.
 - 
                                    
responseObjectThe response from Riak
- 
                                                
counterValueNumberThe counter value in Riak. - 
                                                
isNotFoundBooleanTrue if there was no counter in Riak. 
 - 
                                                
 
 - 
                                    
 
withKey
        - 
                        
key 
Set the key.
Parameters:
- 
                        
keyStringthe key in riak.
 
withPr
        - 
                        
pr 
Set the PR value. If not asSet the bucket default is used.
Parameters:
- 
                        
prNumberthe PR value.
 
withR
        - 
                        
r 
Set the R value. If not asSet the bucket default is used.
Parameters:
- 
                        
rNumberthe R value.
 
withTimeout
        - 
                        
timeout 
Set a timeout for this operation.
Parameters:
- 
                        
timeoutNumbera timeout in milliseconds.
 
