Examples of Quorum


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

    @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

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

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

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

     *            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

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

        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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

     * @param pw
     * @param rw
     * @param vclock
     */
    public DeleteMeta(Integer r, Integer pr, Integer w, Integer dw, Integer pw, Integer rw, VClock vclock, Integer timeout) {
        this( null == r ? null : new Quorum(r),
              null == pr ? null : new Quorum(pr),
              null == w ? null : new Quorum(w),
              null == dw ? null : new Quorum(dw),
              null == pw ? null : new Quorum(pw),
              null == rw ? null : new Quorum(rw),
              vclock,
              timeout
            );
       
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.