Skip to content

Commit

Permalink
JCBC-128: Add ZERO to the PersistTo ENUM.
Browse files Browse the repository at this point in the history
This small changeset is the prerequisite for a larger change
in the JCBC client, so that it is possible to only wait for
proper replication and not for persistence too. See the
proper commit in couchbase-java-client tagged with JCBC-128
for more details and tests.

Change-Id: I3b1385a7a9553170a46d7ef72d6b537c0997b351
Reviewed-on: http://review.couchbase.org/21415
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
  • Loading branch information
daschl authored and Michael Wiederhold committed Oct 8, 2012
1 parent aedb00d commit f0e9762
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/net/spy/memcached/PersistTo.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
* PersistTo codes for a Observe operation.
*/
public enum PersistTo {

/**
* Don't wait for persistence on any nodes.
*/
ZERO(0),
/**
* Persist to the Master. ONE implies MASTER.
*/
Expand Down

0 comments on commit f0e9762

Please sign in to comment.