zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "maoling (Jira)" <j...@apache.org>
Subject [jira] [Created] (ZOOKEEPER-3582) refactor the async api call to lambda style
Date Tue, 15 Oct 2019 05:52:00 GMT
maoling created ZOOKEEPER-3582:

             Summary: refactor the async api call to lambda style
                 Key: ZOOKEEPER-3582
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3582
             Project: ZooKeeper
          Issue Type: Improvement
          Components: server
            Reporter: maoling

For example:
if (recursive) {
    ZKUtil.visitSubTreeDFS(zk, path, watch, new StringCallback() {
        public void processResult(int rc, String path, Object ctx, String name) {
refactor to 
ZKUtil.visitSubTreeDFS(zk, path, watch, (rc, path1, ctx, name) -> out.println(path1));

This message was sent by Atlassian Jira

View raw message