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

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


         * @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

    @Test
    public void testDelete() throws Exception
    {
        DeleteValue.Builder delete = new DeleteValue.Builder(key)
          .withVClock(vClock)
            .withOption(Option.DW, new Quorum(1))
            .withOption(Option.N_VAL, 1)
            .withOption(Option.PR, new Quorum(1))
            .withOption(Option.PW, new Quorum(1))
            .withOption(Option.R, new Quorum(1))
            .withOption(Option.RW, new Quorum(1))
            .withOption(Option.DW, new Quorum(1))
            .withOption(Option.SLOPPY_QUORUM, true)
            .withOption(Option.TIMEOUT, 100)
            .withOption(Option.W, new Quorum(1));


        client.execute(delete.build());

        ArgumentCaptor<DeleteOperation> captor =
View Full Code Here

  {

    StoreValue.Builder store =
      new StoreValue.Builder(riakObject).withLocation(key)
        .withOption(Option.ASIS, true)
        .withOption(Option.DW, new Quorum(1))
        .withOption(Option.IF_NONE_MATCH, true)
        .withOption(Option.IF_NOT_MODIFIED, true)
        .withOption(Option.PW, new Quorum(1))
        .withOption(Option.N_VAL, 1)
        .withOption(Option.RETURN_BODY, true)
        .withOption(Option.RETURN_HEAD, true)
        .withOption(Option.SLOPPY_QUORUM, true)
        .withOption(Option.TIMEOUT, 1000)
        .withOption(Option.W, new Quorum(1));

    client.execute(store.build());

    ArgumentCaptor<StoreOperation> captor =
      ArgumentCaptor.forClass(StoreOperation.class);
View Full Code Here

        FetchMap fetchValue = new FetchMap.Builder(key)
            .withOption(Option.TIMEOUT, 100)
            .withOption(Option.BASIC_QUORUM, true)
            .withOption(Option.N_VAL, 1)
            .withOption(Option.NOTFOUND_OK, true)
            .withOption(Option.PR, new Quorum(1))
            .withOption(Option.R, new Quorum(1))
            .withOption(Option.SLOPPY_QUORUM, true)
            .withOption(Option.INCLUDE_CONTEXT, true)
          .build();

        client.execute(fetchValue);
View Full Code Here

            .withOption(Option.DELETED_VCLOCK, true)
            .withOption(Option.HEAD, true)
            .withOption(Option.IF_MODIFIED, vClock)
            .withOption(Option.N_VAL, 1)
            .withOption(Option.NOTFOUND_OK, true)
            .withOption(Option.PR, new Quorum(1))
            .withOption(Option.R, new Quorum(1))
            .withOption(Option.SLOPPY_QUORUM, true);

        client.execute(fetchValue.build());

        ArgumentCaptor<FetchOperation> captor =
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.