public class MemberGroupConfig extends Object
See the PartitionGroupConfig
for more information.
Constructor and Description |
---|
MemberGroupConfig() |
Modifier and Type | Method and Description |
---|---|
MemberGroupConfig |
addInterface(String ip)
Adds an interface to the member group.
|
MemberGroupConfig |
clear()
Removes all interfaces from the member group.
|
Collection<String> |
getInterfaces()
Gets an unmodifiable collection containing all interfaces.
|
MemberGroupConfig |
setInterfaces(Collection<String> interfaces)
Sets the interfaces that are part of a group.
|
String |
toString() |
public MemberGroupConfig addInterface(String ip)
ip
- the IP address of the interfaceIllegalArgumentException
- if IP is null
or emptygetInterfaces()
,
clear()
public MemberGroupConfig clear()
If no members are in the group, the call is ignored.
public Collection<String> getInterfaces()
setInterfaces(java.util.Collection)
public MemberGroupConfig setInterfaces(Collection<String> interfaces)
If the interfaces is empty, it will have the same effect as calling clear()
.
interfaces
- the interfaces to set that are part of a groupIllegalArgumentException
- if interfaces is null
getInterfaces()
,
clear()
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.