/** * Send the local membership details (load factor and supported Command types) to other member nodes of this * cluster. * * @param updateVersion The version for the update to be send with the membership information * @param expectReply * @throws ServiceRegistryException when an exception occurs sending membership details to other nodes */ protected void broadCastMembership(int updateVersion, boolean expectReply) throws ServiceRegistryException { try { if (channel.isConnected()) { Address localAddress = channel.getAddress(); logger.info("Broadcasting membership from {}", localAddress); sendMyConfigurationTo(null, expectReply, updateVersion); } } catch (Exception e) { throw new ServiceRegistryException("Could not broadcast local membership details to the cluster", e); } }
/** * Send the local membership details (load factor and supported Command types) to other member nodes of this * cluster. * * @param updateVersion The version for the update to be send with the membership information * @param expectReply a {@code boolean} specifying whether a reply is expected * @throws ServiceRegistryException when an exception occurs sending membership details to other nodes */ protected void broadCastMembership(int updateVersion, boolean expectReply) throws ServiceRegistryException { try { if (channel.isConnected()) { Address localAddress = channel.getAddress(); logger.info("Broadcasting membership from {}", localAddress); sendMyConfigurationTo(null, expectReply, updateVersion); } } catch (Exception e) { throw new ServiceRegistryException("Could not broadcast local membership details to the cluster", e); } }