The Couchbase Java client allows Java applications to access a Couchbase cluster. It offers synchronous APIs as well as reactive and asynchronous equivalents to maximize flexibility and performance.
Scope scope = bucket.scope("inventory"); Collection collection = scope.collection("airport"); MutationResult result = collection.mutateIn( "airport_1254", Collections.singletonList(MutateInSpec.upsert("foo", "bar")), mutateInOptions().durability(DurabilityLevel.MAJORITY) );
Couchbase Java SDK 3.3
The documentation supplements the practical Howto docs with references and concept guides, for those who prefer a broader understanding before diving in and coding.
Leverage the new Couchbase Server Scopes and Collection features to build multi-tenant micro-service application. Integrate with Open Telemetry API to instrument telemetry data for your mission critical workloads that will make troubleshooting and debugging of your applications easier than ever. Add an additional layer of security and protect your sensitive workloads using our Client Side Field Level Encryption capability.
Our Distributed ACID Transactions library is now integrated into the Java SDK.
Older SDK Versions
Documentation on older, unsupported versions of the SDK — that have reached end-of-life — can be found in the archive.