public void writeToZookeeper(byte[] data, boolean labelsOrUserAuths) throws IOException { // Update local state, then send it to zookeeper if (labelsOrUserAuths) { // True for labels this.refreshLabelsCache(data); } else { // False for user auths this.refreshUserAuthsCache(data); } this.zkVisibilityWatcher.writeToZookeeper(data, labelsOrUserAuths); } }
public void writeToZookeeper(byte[] data, boolean labelsOrUserAuths) throws IOException { // Update local state, then send it to zookeeper if (labelsOrUserAuths) { // True for labels this.refreshLabelsCache(data); } else { // False for user auths this.refreshUserAuthsCache(data); } this.zkVisibilityWatcher.writeToZookeeper(data, labelsOrUserAuths); } }