Examples of WatchedUpdateListener


Examples of com.netflix.config.WatchedUpdateListener

    }
   
    private static void setZkProperty(String key, String value) throws Exception {
        // update the underlying zk property and assert that the new value is picked up
        final CountDownLatch updateLatch = new CountDownLatch(1);
        zkConfigSource.addUpdateListener(new WatchedUpdateListener() {
            public void updateConfiguration(WatchedUpdateResult result) {
                updateLatch.countDown();
            }
        });
        zkConfigSource.setZkProperty(key, value);
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.