Returns a Task[Boolean] where the boolean represents if the bucket was actually closed or not.
Disconnect this CouchConnection.
Disconnect this CouchConnection. The Connection will no longer be usable and all datastores created from it will no longer work.
Attempt to get the current cached bucket for the BucketNameAndPassword.
Attempt to get the current cached bucket for the BucketNameAndPassword. If it isn't in the cache, create a new one.
Open a bucket for the bucketAndPassword and create a Datastore from it.
Create a connection to the Couchbase Cluster, which will allow you to create a com.ironcorelabs.davenport.datastore.CouchDatastore for a particular bucket. Only one of CouchConnection should be created at a time in an application as it handles all the underlying threading and is expensive to create.
This is primarily used to for the purpose of calling CouchConnection.openDatastore which creates a com.ironcorelabs.davenport.datastore.Datastore for the BucketNameAndPassword that was passed in. The datastore created can be reused or discarded.