We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could the code below:
private void fireDataChangedEvents(final String path, Set<IZkDataListener> listeners) { for (final IZkDataListener listener : listeners) { _eventThread.send(new ZkEvent("Data of " + path + " changed sent to " + listener) { @Override public void run() throws Exception { // reinstall watch exists(path, true); try { Object data = readData(path, null, true); listener.handleDataChange(path, data); } catch (ZkNoNodeException e) { listener.handleDataDeleted(path); } } }); } }
modify as:
private void fireDataChangedEvents(final String path, Set<IZkDataListener> listeners) { _eventThread.send(new ZkEvent("Data of " + path + " changed sent to " + listeners) { @Override public void run() throws Exception { // reinstall watch exists(path, true); try { Object data = readData(path, null, true); for (final IZkDataListener listener : listeners) { listener.handleDataChange(path, data); } } catch (ZkNoNodeException e) { for (final IZkDataListener listener : listeners) { listener.handleDataDeleted(path); } } } }); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Could the code below:
modify as:
The text was updated successfully, but these errors were encountered: