public class DefaultCouchbaseEnvironment extends com.couchbase.client.core.env.DefaultCoreEnvironment implements CouchbaseEnvironment
The default implementation of a CouchbaseEnvironment.
This environment is intended to be reused and passed in across AsyncCluster instances. It is stateful and needs to be shut down manually if it was passed in by the user. Some threads it manages are non-daemon threads.
Default settings can be customized through the DefaultCouchbaseEnvironment.Builder or through the setting of system properties. Latter ones take always precedence and can be used to override builder settings at runtime too.
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultCouchbaseEnvironment.Builder |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SDK_PACKAGE_NAME_AND_VERSION |
BOOTSTRAP_CARRIER_DIRECT_PORT, BOOTSTRAP_CARRIER_ENABLED, BOOTSTRAP_CARRIER_SSL_PORT, BOOTSTRAP_HTTP_DIRECT_PORT, BOOTSTRAP_HTTP_ENABLED, BOOTSTRAP_HTTP_SSL_PORT, COMPUTATION_POOL_SIZE, IO_POOL_SIZE, KEYVALUE_ENDPOINTS, PACKAGE_NAME_AND_VERSION, QUERY_ENABLED, QUERY_ENDPOINTS, QUERY_PORT, REQUEST_BUFFER_SIZE, RESPONSE_BUFFER_SIZE, SSL_ENABLED, SSL_KEYSTORE_FILE, SSL_KEYSTORE_PASSWORD, USER_AGENT, VIEW_ENDPOINTS| Modifier and Type | Method and Description |
|---|---|
static DefaultCouchbaseEnvironment.Builder |
builder()
Returns the
DefaultCouchbaseEnvironment.Builder to customize environment settings. |
long |
connectTimeout()
The default timeout for connect operations, set to
CONNECT_TIMEOUT. |
static DefaultCouchbaseEnvironment |
create()
Creates a
CouchbaseEnvironment with default settings applied. |
long |
disconnectTimeout()
The default timeout for disconnect operations, set to
DISCONNECT_TIMEOUT. |
long |
kvTimeout()
The default timeout for binary (key/value) operations, set to
KV_TIMEOUT. |
long |
managementTimeout()
The default timeout for management operations, set to
MANAGEMENT_TIMEOUT. |
long |
queryTimeout()
The default timeout for query operations, set to
QUERY_TIMEOUT. |
long |
viewTimeout()
The default timeout for view operations, set to
VIEW_TIMEOUT. |
booleanPropertyOr, bootstrapCarrierDirectPort, bootstrapCarrierEnabled, bootstrapCarrierSslPort, bootstrapHttpDirectPort, bootstrapHttpEnabled, bootstrapHttpSslPort, computationPoolSize, intPropertyOr, ioPool, ioPoolSize, kvEndpoints, longPropertyOr, packageNameAndVersion, queryEnabled, queryEndpoints, queryPort, requestBufferSize, responseBufferSize, scheduler, shutdown, sslEnabled, sslKeystoreFile, sslKeystorePassword, stringPropertyOr, toString, userAgent, viewEndpointsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitbootstrapCarrierDirectPort, bootstrapCarrierEnabled, bootstrapCarrierSslPort, bootstrapHttpDirectPort, bootstrapHttpEnabled, bootstrapHttpSslPort, computationPoolSize, ioPool, ioPoolSize, kvEndpoints, packageNameAndVersion, queryEnabled, queryEndpoints, queryPort, requestBufferSize, responseBufferSize, scheduler, shutdown, sslEnabled, sslKeystoreFile, sslKeystorePassword, userAgent, viewEndpointspublic static java.lang.String SDK_PACKAGE_NAME_AND_VERSION
public static DefaultCouchbaseEnvironment create()
Creates a CouchbaseEnvironment with default settings applied.
DefaultCouchbaseEnvironment with default settings.public static DefaultCouchbaseEnvironment.Builder builder()
Returns the DefaultCouchbaseEnvironment.Builder to customize environment settings.
DefaultCouchbaseEnvironment.Builder.public long managementTimeout()
CouchbaseEnvironmentThe default timeout for management operations, set to MANAGEMENT_TIMEOUT.
managementTimeout in interface CouchbaseEnvironmentpublic long queryTimeout()
CouchbaseEnvironmentThe default timeout for query operations, set to QUERY_TIMEOUT.
queryTimeout in interface CouchbaseEnvironmentpublic long viewTimeout()
CouchbaseEnvironmentThe default timeout for view operations, set to VIEW_TIMEOUT.
viewTimeout in interface CouchbaseEnvironmentpublic long kvTimeout()
CouchbaseEnvironmentThe default timeout for binary (key/value) operations, set to KV_TIMEOUT.
kvTimeout in interface CouchbaseEnvironmentpublic long connectTimeout()
CouchbaseEnvironmentThe default timeout for connect operations, set to CONNECT_TIMEOUT.
connectTimeout in interface CouchbaseEnvironmentpublic long disconnectTimeout()
CouchbaseEnvironmentThe default timeout for disconnect operations, set to DISCONNECT_TIMEOUT.
disconnectTimeout in interface CouchbaseEnvironment