Package com.basho.riak.client.api.cap

Examples of com.basho.riak.client.api.cap.Quorum


        MapUpdate update = new MapUpdate();

        UpdateMap store = new UpdateMap.Builder(key, update)
          .withContext(context)
            .withOption(Option.DW, new Quorum(1))
            .withOption(Option.PW, new Quorum(1))
            .withOption(Option.N_VAL, 1)
            .withOption(Option.RETURN_BODY, true)
            .withOption(Option.SLOPPY_QUORUM, true)
            .withOption(Option.TIMEOUT, 1000)
            .withOption(Option.W, new Quorum(1))
          .build();

        client.execute(store);

        ArgumentCaptor<DtUpdateOperation> captor =
View Full Code Here


         * @param rw the rw value as an integer.
         * @return a reference to this object.
         */
        public Builder withRw(int rw)
        {
            this.rw = new Quorum(rw);
            return this;
        }
View Full Code Here

         * @param dw the dw value as an integer.
         * @return a reference to this object.
         */
        public Builder withDw(int dw)
        {
            this.dw = new Quorum(dw);
            return this;
        }
View Full Code Here

         * @param w the w value as an integer.
         * @return a reference to this object.
         */
        public Builder withW(int w)
        {
            this.w = new Quorum(w);
            return this;
        }
View Full Code Here

         * @param r the r value as an integer.
         * @return a reference to this object.
         */
        public Builder withR(int r)
        {
            this.r = new Quorum(r);
            return this;
        }
View Full Code Here

         * @param pr the pr value as an integer.
         * @return a reference to this object.
         */
        public Builder withPr(int pr)
        {
            this.pr = new Quorum(pr);
            return this;
        }
View Full Code Here

         * @param pw the pw value as an integer.
         * @return a reference to this object.
         */
        public Builder withPw(int pw)
        {
            this.pw = new Quorum(pw);
            return this;
        }
View Full Code Here

TOP

Related Classes of com.basho.riak.client.api.cap.Quorum

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.