Class ClusterEnvironment

java.lang.Object
com.couchbase.client.core.env.CoreEnvironment
com.couchbase.client.java.env.ClusterEnvironment
All Implemented Interfaces:
AutoCloseable

public class ClusterEnvironment extends CoreEnvironment
The Environment is the main place in the SDK where configuration and state lives (i.e. I/O pools).

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 to the ClusterOptions though the user is responsible for shutting it down after the cluster is disconnected!

Since the ClusterEnvironment extends the CoreEnvironment, most options can be found on the parent class for documentation purposes.