}
}
private void valuesChangedForInterface(String interfaceName, long[] keys) {
for (int i = 0; i < listenToChangesConnections.size(); i++) {
WrappedSocketConnection connection = listenToChangesConnections.get(i);
try {
connection.writeString(interfaceName);
connection.writeInt(keys.length);
for (Long key : keys) {
connection.writeLong(key);
}
connection.flush();
long response = connection.readLong();
if (response != LONG_OK) {
throw new RuntimeException("Unexpected response " + response + " from " + connection.getInetAddress());
}
} catch (IOException exp) {
IOUtils.closeQuietly(connection);
listenToChangesConnections.remove(i--);
}