com.couchbase.client
Class CouchbaseConnectionFactoryBuilder

java.lang.Object
  extended by net.spy.memcached.ConnectionFactoryBuilder
      extended by com.couchbase.client.CouchbaseConnectionFactoryBuilder

public class CouchbaseConnectionFactoryBuilder
extends net.spy.memcached.ConnectionFactoryBuilder

CouchbaseConnectionFactoryBuilder.


Nested Class Summary
 
Nested classes/interfaces inherited from class net.spy.memcached.ConnectionFactoryBuilder
net.spy.memcached.ConnectionFactoryBuilder.Locator, net.spy.memcached.ConnectionFactoryBuilder.Protocol
 
Field Summary
 
Fields inherited from class net.spy.memcached.ConnectionFactoryBuilder
authDescriptor, failureMode, hashAlg, initialObservers, isDaemon, locator, maxReconnectDelay, opFact, opQueueFactory, opQueueMaxBlockTime, opTimeout, readBufSize, readQueueFactory, shouldOptimize, timeoutExceptionThreshold, transcoder, useNagle, writeQueueFactory
 
Constructor Summary
CouchbaseConnectionFactoryBuilder()
           
 
Method Summary
 CouchbaseConnectionFactory buildCouchbaseConnection(java.util.List<java.net.URI> baseList, java.lang.String bucketName, java.lang.String pwd)
          Get the CouchbaseConnectionFactory set up with the provided parameters.
 CouchbaseConnectionFactory buildCouchbaseConnection(java.util.List<java.net.URI> baseList, java.lang.String bucketName, java.lang.String usr, java.lang.String pwd)
          Get the CouchbaseConnectionFactory set up with the provided parameters.
 long getObsPollInterval()
           
 int getObsPollMax()
           
 Config getVBucketConfig()
           
 int getViewTimeout()
           
 CouchbaseConnectionFactoryBuilder setObsPollInterval(long interval)
           
 CouchbaseConnectionFactoryBuilder setObsPollMax(int maxPoll)
           
 void setReconnectThresholdTime(long time, java.util.concurrent.TimeUnit unit)
           
 void setVBucketConfig(Config config)
           
 CouchbaseConnectionFactoryBuilder setViewTimeout(int timeout)
           
 
Methods inherited from class net.spy.memcached.ConnectionFactoryBuilder
build, setAuthDescriptor, setDaemon, setFailureMode, setHashAlg, setInitialObservers, setLocatorType, setMaxReconnectDelay, setOpFact, setOpQueueFactory, setOpQueueMaxBlockTime, setOpTimeout, setProtocol, setReadBufferSize, setReadOpQueueFactory, setShouldOptimize, setTimeoutExceptionThreshold, setTranscoder, setUseNagleAlgorithm, setWriteOpQueueFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CouchbaseConnectionFactoryBuilder

public CouchbaseConnectionFactoryBuilder()
Method Detail

getVBucketConfig

public Config getVBucketConfig()

setVBucketConfig

public void setVBucketConfig(Config config)

setReconnectThresholdTime

public void setReconnectThresholdTime(long time,
                                      java.util.concurrent.TimeUnit unit)

setObsPollInterval

public CouchbaseConnectionFactoryBuilder setObsPollInterval(long interval)

setObsPollMax

public CouchbaseConnectionFactoryBuilder setObsPollMax(int maxPoll)

setViewTimeout

public CouchbaseConnectionFactoryBuilder setViewTimeout(int timeout)

buildCouchbaseConnection

public CouchbaseConnectionFactory buildCouchbaseConnection(java.util.List<java.net.URI> baseList,
                                                           java.lang.String bucketName,
                                                           java.lang.String pwd)
                                                    throws java.io.IOException
Get the CouchbaseConnectionFactory set up with the provided parameters. Note that a CouchbaseConnectionFactory requires the failure mode is set to retry, and the locator type is discovered dynamically based on the cluster you are connecting to. As a result, these values will be overridden upon calling this function.

Parameters:
baseList - a list of URI's that will be used to connect to the cluster
bucketName - the name of the bucket to connect to, also used for username
pwd - the password for the bucket
Returns:
a CouchbaseConnectionFactory object
Throws:
java.io.IOException

buildCouchbaseConnection

public CouchbaseConnectionFactory buildCouchbaseConnection(java.util.List<java.net.URI> baseList,
                                                           java.lang.String bucketName,
                                                           java.lang.String usr,
                                                           java.lang.String pwd)
                                                    throws java.io.IOException
Get the CouchbaseConnectionFactory set up with the provided parameters. Note that a CouchbaseConnectionFactory requires the failure mode is set to retry, and the locator type is discovered dynamically based on the cluster you are connecting to. As a result, these values will be overridden upon calling this function.

Parameters:
baseList - a list of URI's that will be used to connect to the cluster
bucketName - the name of the bucket to connect to
usr - the username for the bucket
pwd - the password for the bucket
Returns:
a CouchbaseConnectionFactory object
Throws:
java.io.IOException

getObsPollInterval

public long getObsPollInterval()
Returns:
the obsPollInterval

getObsPollMax

public int getObsPollMax()
Returns:
the obsPollMax

getViewTimeout

public int getViewTimeout()
Returns:
the viewTimeout


Copyright © 2006-2009 Dustin Sallings, 2009-2012 Couchbase, Inc.