com.couchbase.client
Class CouchbaseConnectionFactoryBuilder
java.lang.Object
net.spy.memcached.ConnectionFactoryBuilder
com.couchbase.client.CouchbaseConnectionFactoryBuilder
public class CouchbaseConnectionFactoryBuilder
- extends net.spy.memcached.ConnectionFactoryBuilder
CouchbaseConnectionFactoryBuilder.
Nested classes/interfaces inherited from class net.spy.memcached.ConnectionFactoryBuilder |
net.spy.memcached.ConnectionFactoryBuilder.Locator, net.spy.memcached.ConnectionFactoryBuilder.Protocol |
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 |
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 |
CouchbaseConnectionFactoryBuilder
public CouchbaseConnectionFactoryBuilder()
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 clusterbucketName
- the name of the bucket to connect to, also used for
usernamepwd
- 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 clusterbucketName
- the name of the bucket to connect tousr
- the username for the bucketpwd
- 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.