You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/asciidoc/entity.adoc
+2-2
Original file line number
Diff line number
Diff line change
@@ -78,8 +78,8 @@ This key needs to be any string with a length of maximum 250 characters.
78
78
Feel free to use whatever fits your use case, be it a UUID, an email address or anything else.
79
79
80
80
Writes to Couchbase-Server buckets can optionally be assigned durability requirements; which instruct Couchbase Server to update the specified document on multiple nodes in memory and/or disk locations across the cluster; before considering the write to be committed.
81
-
Default durability requirements can also be configured through the `@Document` annotation.
82
-
For example: `@Document(durabilityLevel = DurabilityLevel.MAJORITY)` will force mutations to be replicated to a majority of the Data Service nodes.
81
+
Default durability requirements can also be configured through the `@Document` or `@Durability` annotations.
82
+
For example: `@Document(durabilityLevel = DurabilityLevel.MAJORITY)` will force mutations to be replicated to a majority of the Data Service nodes. Both of the annotations support expression based durability level assignment via `durabilityExpression` attribute (Note SPEL is not supported).
NOTE: Copies of this document may be made for your own use and for distribution to others, provided that you do not charge any fee for such copies and further provided that each copy contains this Copyright Notice, whether distributed in print or electronically.
0 commit comments