Package com.datastax.driver.core.policies

Examples of com.datastax.driver.core.policies.DCAwareRoundRobinPolicy


        case DCAwareRoundRobinPolicy:

            String usedHostsPerRemoteDc = (String) conProperties.get("usedHostsPerRemoteDc");
            String localdc = (String) conProperties.get("localdc");
            loadBalancingPolicy = new DCAwareRoundRobinPolicy(localdc == null ? "DC1" : localdc,
                    usedHostsPerRemoteDc != null ? Integer.parseInt(usedHostsPerRemoteDc) : 0);
            break;

        // case RoundRobinPolicy:
        // loadBalancingPolicy = new RoundRobinPolicy();
View Full Code Here

TOP

Related Classes of com.datastax.driver.core.policies.DCAwareRoundRobinPolicy

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.