Package org.springframework.data.keyvalue.riak.core

Examples of org.springframework.data.keyvalue.riak.core.RiakQosParameters


        }
      }
      // Set QOS parameters
      o = attributes.get("qos");
      if (null != o) {
        RiakQosParameters qos = new RiakQosParameters();
        Map<String, Object> qosParams = (Map<String, Object>) o;
        if (qosParams.containsKey("dw")) {
          qos.setDurableWriteThreshold(qosParams.get("dw"));
        }
        if (qosParams.containsKey("w")) {
          qos.setWriteThreshold(qosParams.get("w"));
        }
        if (qosParams.containsKey("r")) {
          qos.setReadThreshold(qosParams.get("r"));
        }
        op.setQosParameters(qos);
      }
      // Set timeout
      o = attributes.get("wait");
View Full Code Here

TOP

Related Classes of org.springframework.data.keyvalue.riak.core.RiakQosParameters

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.