Class VirtualMulticastSender

    • Constructor Detail

      • VirtualMulticastSender

        public VirtualMulticastSender​(NetworkManager networkManager,
                                      java.util.List<PeerID> initialPeerIds)
                               throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getVirtualPeerIDSet

        public java.util.Set<PeerID> getVirtualPeerIDSet()
      • doBroadcast

        protected boolean doBroadcast​(Message message)
                               throws java.io.IOException
        Broadcasts or Multicasts the given Message to all members
        Specified by:
        doBroadcast in class AbstractMulticastMessageSender
        Parameters:
        message - a message which is sent to all members
        Returns:
        true if the message is sent to all members successfully, otherwise false
        Throws:
        java.io.IOException - if I/O error occurs or given parameters are not valid
      • removeUnknownInstances

        public void removeUnknownInstances()
        Remove all PeerID entries added via DISCOVERY_URI_LIST. These entries have "Unknown_" at start for instance name. If there are not removed, then we send to those DISCOVERY_URI_LIST instances multiple times.