Package com.datastax.driver.core.policies

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


    public void should_refresh_single_connected_host() {
        CCMBridge ccm = null;
        Cluster cluster = null;
        try {
            // This will make the driver use at most 2 hosts, the others will be ignored
            LimitingLoadBalancingPolicy loadBalancingPolicy = new LimitingLoadBalancingPolicy(new RoundRobinPolicy(), 2, 1);

            // Setup a 3-host cluster, start only two hosts so that we know in advance which ones the policy will use
            ccm = CCMBridge.create("test");
            ccm.populate(3);
            ccm.start(1);
View Full Code Here

TOP

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

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.