public class CouchbaseConnectionFactoryBuilder extends ConnectionFactoryBuilder
ConnectionFactoryBuilder.Locator, ConnectionFactoryBuilder.ProtocolauthDescriptor, failureMode, hashAlg, initialObservers, isDaemon, locator, maxReconnectDelay, opFact, opQueueFactory, opQueueMaxBlockTime, opTimeout, readBufSize, readQueueFactory, shouldOptimize, timeoutExceptionThreshold, transcoder, useNagle, writeQueueFactory| Constructor and Description |
|---|
CouchbaseConnectionFactoryBuilder() |
| Modifier and Type | Method and Description |
|---|---|
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) |
build, setAuthDescriptor, setDaemon, setFailureMode, setHashAlg, setInitialObservers, setLocatorType, setMaxReconnectDelay, setOpFact, setOpQueueFactory, setOpQueueMaxBlockTime, setOpTimeout, setProtocol, setReadBufferSize, setReadOpQueueFactory, setShouldOptimize, setTimeoutExceptionThreshold, setTranscoder, setUseNagleAlgorithm, setWriteOpQueueFactorypublic Config getVBucketConfig()
public void setVBucketConfig(Config config)
public void setReconnectThresholdTime(long time,
java.util.concurrent.TimeUnit unit)
public CouchbaseConnectionFactoryBuilder setObsPollInterval(long interval)
public CouchbaseConnectionFactoryBuilder setObsPollMax(int maxPoll)
public CouchbaseConnectionFactoryBuilder setViewTimeout(int timeout)
public CouchbaseConnectionFactory buildCouchbaseConnection(java.util.List<java.net.URI> baseList, java.lang.String bucketName, java.lang.String pwd) throws java.io.IOException
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 bucketjava.io.IOExceptionpublic 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
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 bucketjava.io.IOExceptionpublic long getObsPollInterval()
public int getObsPollMax()
public int getViewTimeout()
Copyright © 2006-2009 Dustin Sallings, 2009-2012 Couchbase, Inc.