@Override @SuppressWarnings("unchecked") public void processResult(int rc, String path, Object ctx, List<ACL> acl, Stat stat) { SettableOperationFuture<ACLData> result = (SettableOperationFuture<ACLData>) ctx; KeeperException.Code code = KeeperException.Code.get(rc); if (code == KeeperException.Code.OK) { result.set(new BasicACLData(acl, stat)); return; } result.setException(KeeperException.create(code, result.getRequestPath())); } };
@Override @SuppressWarnings("unchecked") public void processResult(int rc, String path, Object ctx, List<ACL> acl, Stat stat) { SettableOperationFuture<ACLData> result = (SettableOperationFuture<ACLData>) ctx; KeeperException.Code code = KeeperException.Code.get(rc); if (code == KeeperException.Code.OK) { result.set(new BasicACLData(acl, stat)); return; } result.setException(KeeperException.create(code, result.getRequestPath())); } };