public class MulticastConfig extends Object implements io.atomix.utils.config.Config
| Constructor and Description |
|---|
MulticastConfig() |
| Modifier and Type | Method and Description |
|---|---|
InetAddress |
getGroup()
Returns the multicast group.
|
int |
getPort()
Returns the multicast port.
|
boolean |
isEnabled()
Returns whether multicast is enabled.
|
MulticastConfig |
setEnabled(boolean enabled)
Sets whether multicast is enabled.
|
MulticastConfig |
setGroup(InetAddress group)
Sets the multicast group.
|
MulticastConfig |
setGroup(String group)
Sets the multicast group.
|
MulticastConfig |
setPort(int port)
Sets the multicast port.
|
public boolean isEnabled()
public MulticastConfig setEnabled(boolean enabled)
enabled - whether multicast is enabledpublic InetAddress getGroup()
public MulticastConfig setGroup(String group)
group - the multicast groupio.atomix.utils.config.ConfigurationException - if the group is invalidpublic MulticastConfig setGroup(InetAddress group)
group - the multicast grouppublic int getPort()
public MulticastConfig setPort(int port)
port - the multicast portCopyright © 2013–2018. All rights reserved.