Class MulticastConfig

java.lang.Object
io.atomix.cluster.MulticastConfig
All Implemented Interfaces:
io.atomix.utils.config.Config

public class MulticastConfig
extends Object
implements io.atomix.utils.config.Config
Multicast configuration.
  • Constructor Details

  • Method Details

    • isEnabled

      public boolean isEnabled()
      Returns whether multicast is enabled.
      Returns:
      whether multicast is enabled
    • setEnabled

      public MulticastConfig setEnabled​(boolean enabled)
      Sets whether multicast is enabled.
      Parameters:
      enabled - whether multicast is enabled
      Returns:
      the multicast configuration
    • getGroup

      public InetAddress getGroup()
      Returns the multicast group.
      Returns:
      the multicast group
    • setGroup

      public MulticastConfig setGroup​(String group)
      Sets the multicast group.
      Parameters:
      group - the multicast group
      Returns:
      the multicast configuration
      Throws:
      io.atomix.utils.config.ConfigurationException - if the group is invalid
    • setGroup

      public MulticastConfig setGroup​(InetAddress group)
      Sets the multicast group.
      Parameters:
      group - the multicast group
      Returns:
      the multicast configuration
    • getPort

      public int getPort()
      Returns the multicast port.
      Returns:
      the multicast port
    • setPort

      public MulticastConfig setPort​(int port)
      Sets the multicast port.
      Parameters:
      port - the multicast port
      Returns:
      the multicast configuration