Package com.hazelcast.config
Class InterfacesConfig
java.lang.Object
com.hazelcast.config.InterfacesConfig
public class InterfacesConfig extends Object
Contains the configuration for Interfaces.
-
Constructor Summary
Constructors Constructor Description InterfacesConfig()
-
Method Summary
Modifier and Type Method Description InterfacesConfig
addInterface(String ip)
Adds a new interfaceInterfacesConfig
clear()
clears all interfaces.boolean
equals(Object o)
Collection<String>
getInterfaces()
int
hashCode()
boolean
isEnabled()
InterfacesConfig
setEnabled(boolean enabled)
InterfacesConfig
setInterfaces(Collection<String> interfaces)
Adds a collection of interfaces.String
toString()
-
Constructor Details
-
InterfacesConfig
public InterfacesConfig()
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Returns:
true
if the interface is enabled,false
otherwise
-
setEnabled
- Parameters:
enabled
- the enabled interface to set
-
addInterface
Adds a new interface- Parameters:
ip
- the added interface
-
clear
clears all interfaces. -
getInterfaces
- Returns:
- a read-only collection of interfaces
-
setInterfaces
Adds a collection of interfaces. Clears the current collection and then adds all entries of new collection.- Parameters:
interfaces
- the interfaces to set
-
equals
-
hashCode
public final int hashCode() -
toString
-