Package com.hazelcast.config
Class MemberGroupConfig
java.lang.Object
com.hazelcast.config.MemberGroupConfig
Contains the configuration for a single member group.
See the PartitionGroupConfig
for more information.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddInterface
(String ip) Adds an interface to the member group.clear()
Removes all interfaces from the member group.final boolean
Gets an unmodifiable collection containing all interfaces.final int
hashCode()
setInterfaces
(Collection<String> interfaces) Sets the interfaces that are part of a group.toString()
-
Constructor Details
-
MemberGroupConfig
public MemberGroupConfig()
-
-
Method Details
-
addInterface
Adds an interface to the member group. Duplicate elements are ignored.- Parameters:
ip
- the IP address of the interface- Returns:
- the updated MemberGroupConfig
- Throws:
IllegalArgumentException
- if IP isnull
or empty- See Also:
-
clear
Removes all interfaces from the member group.If no members are in the group, the call is ignored.
- Returns:
- the updated MemberGroupConfig
-
getInterfaces
Gets an unmodifiable collection containing all interfaces.- Returns:
- the unmodifiable collection containing all interfaces
- See Also:
-
setInterfaces
Sets the interfaces that are part of a group.If the interfaces is empty, it will have the same effect as calling
clear()
.- Parameters:
interfaces
- the interfaces to set that are part of a group- Returns:
- the updated MemberGroupConfig
- Throws:
IllegalArgumentException
- if interfaces isnull
- See Also:
-
equals
-
hashCode
public final int hashCode() -
toString
-