Package com.basho.riak.client.cap

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


        this.pr = new Quorum(pr);
        return this;
    }

    public BucketPropertiesBuilder pr(int pr) {
        this.pr = new Quorum(pr);
        return this;
    }
View Full Code Here


    /**
     * @param pw
     * @return
     */
    public BucketPropertiesBuilder pw(Quora pw) {
        this.pw = new Quorum(pw);
        return this;
    }
View Full Code Here

    @Override public Quorum deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException,
            JsonProcessingException {
        JsonToken token = jp.getCurrentToken();
        switch (token) {
        case VALUE_STRING: {
            return new Quorum(Quora.fromString(jp.getText()));
        }
        case VALUE_NUMBER_INT: {
            return new Quorum(jp.getIntValue());
        }
        case VALUE_NULL: {
            return null;
        }
        default:
View Full Code Here

    @Override public Quorum deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException,
            JsonProcessingException {
        JsonToken token = jp.getCurrentToken();
        switch (token) {
        case VALUE_STRING: {
            return new Quorum(Quora.fromString(jp.getText()));
        }
        case VALUE_NUMBER_INT: {
            return new Quorum(jp.getIntValue());
        }
        case VALUE_NULL: {
            return null;
        }
        default:
View Full Code Here

     * @param ifNotModified
     *            only store is the vclock supplied on store matches the vclock
     *            in Riak
     */
    public StoreMeta(Integer w, Integer dw, Integer pw, Boolean returnBody, Boolean ifNoneMatch, Boolean ifNotModified, Boolean asis, Integer timeout) {
        this(null == w ? null : new Quorum(w),
             null == dw ? null : new Quorum(dw),
             null == pw ? null : new Quorum(pw),
             returnBody,
             null,
             ifNoneMatch,
             ifNotModified,
             asis,
View Full Code Here

     *            only store is the vclock supplied on store matches the vclock
     *            in Riak
     */
    public StoreMeta(Integer w, Integer dw, Integer pw, Boolean returnBody, Boolean returnHead, Boolean ifNoneMatch,
                     Boolean ifNotModified, Boolean asis, Integer timeout) {
        this(null == w ? null : new Quorum(w),
             null == dw ? null : new Quorum(dw),
             null == pw ? null : new Quorum(pw),
             returnBody,
             returnHead,
             ifNoneMatch,
             ifNotModified,
             asis,
View Full Code Here

        public StoreMeta build() {
            return new StoreMeta(w, dw, pw, returnBody, returnHead, ifNoneMatch, ifNotModified, asis, timeout);
        }

        public Builder w(int w) {
            this.w = new Quorum(w);
            return this;
        }
View Full Code Here

            this.w = new Quorum(w);
            return this;
        }

        public Builder w(Quora w) {
            this.w = new Quorum(w);
            return this;
        }
View Full Code Here

            this.w = w;
            return this;
        }
       
        public Builder dw(int dw) {
            this.dw = new Quorum(dw);
            return this;
        }
View Full Code Here

            this.dw = new Quorum(dw);
            return this;
        }

        public Builder dw(Quora dw) {
            this.dw = new Quorum(dw);
            return this;
        }
View Full Code Here

TOP

Related Classes of com.basho.riak.client.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.