You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@zookeeper.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2019/11/13 12:54:00 UTC

[jira] [Updated] (ZOOKEEPER-3582) refactor the async api call to lambda style

     [ https://issues.apache.org/jira/browse/ZOOKEEPER-3582?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ASF GitHub Bot updated ZOOKEEPER-3582:
--------------------------------------
    Labels: pull-request-available  (was: )

> 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
>            Priority: Minor
>              Labels: pull-request-available
>
> For example:
> {code:java}
> if (recursive) {
>     ZKUtil.visitSubTreeDFS(zk, path, watch, new StringCallback() {
>         @Override
>         public void processResult(int rc, String path, Object ctx, String name) {
>             out.println(path);
>         }
>     });
> }
> {code}
> refactor to 
> {code:java}
> ZKUtil.visitSubTreeDFS(zk, path, watch, (rc, path1, ctx, name) -> out.println(path1));
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)