You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@helix.apache.org by GitBox <gi...@apache.org> on 2022/05/10 20:15:27 UTC
[GitHub] [helix] rabashizade commented on a diff in pull request #2082: Add TTL mode to async create API in ZkClient
rabashizade commented on code in PR #2082:
URL: https://github.com/apache/helix/pull/2082#discussion_r869643782
##########
zookeeper-api/src/main/java/org/apache/helix/zookeeper/zkclient/callback/ZkAsyncCallbacks.java:
##########
@@ -111,12 +112,17 @@ protected void recordFailure(int rc, String path, ZkAsyncCallMonitorContext moni
}
}
- public static class CreateCallbackHandler extends DefaultCallback implements StringCallback {
+ public static class CreateCallbackHandler extends DefaultCallback implements StringCallback, Create2Callback {
@Override
public void processResult(int rc, String path, Object ctx, String name) {
callback(rc, path, ctx);
}
+ @Override
+ public void processResult(int rc, String path, Object ctx, String name, Stat stat) {
Review Comment:
It's a Zookeeper data structure used for returning metadata about a ZNode. This particular method is part of the `Create2Callback` interface that has to be implemented.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org