- All Implemented Interfaces:
If not created explicitly by the user, the SDK will create its own one internally that can also be accessed
by the user. If this is the case it does not need to be shut down manually. If the environment is passed in
ClusterOptions though the user is responsible for shutting it down after
the cluster is disconnected!
Nested Class SummaryModifier and TypeClassDescription
Method SummaryModifier and TypeMethodDescription
create()Returns the low-level cryptography manager for Field-Level Encryption if one has been configured.
protected StringReturns the default serializer used to serialize and deserialize JSON values.Returns the default transcoder used for all operations if not overridden on a per-operation basis.
Methods inherited from class com.couchbase.client.core.env.CoreEnvironment
clientHash, clientVersion, close, compressionConfig, coreHash, coreVersion, eventBus, executor, exportAsString, ioConfig, ioEnvironment, loggerConfig, maxNumRequestsInRetry, meter, orphanReporter, requestCallbacks, requestTracer, retryStrategy, scheduler, securityConfig, shutdown, shutdown, shutdownAsync, shutdownAsync, shutdownReactive, shutdownReactive, timeoutConfig, timer, toString, transactionsConfig, transactionsSchedulers, userAgent
defaultAgentTitleprotected String defaultAgentTitle()
createpublic static ClusterEnvironment create()
- a new environment with default settings.
builderpublic static ClusterEnvironment.Builder builder()
transcoderpublic Transcoder transcoder()Returns the default transcoder used for all operations if not overridden on a per-operation basis.
jsonSerializerpublic JsonSerializer jsonSerializer()Returns the default serializer used to serialize and deserialize JSON values.
cryptoManagerReturns the low-level cryptography manager for Field-Level Encryption if one has been configured.
Useful for implementing encryption with external JSON libraries.
JsonObjectCryptofor a high level alternative that's compatible with Couchbase
Note: Use of the Field-Level Encryption functionality is subject to the Couchbase Inc. Enterprise Subscription License Agreement v7