Package com.hazelcast.config
Class InterfacesConfig
java.lang.Object
com.hazelcast.config.InterfacesConfig
Contains the configuration for Interfaces.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddInterface
(String ip) Adds a new interfaceclear()
clears all interfaces.final boolean
final int
hashCode()
boolean
setEnabled
(boolean enabled) setInterfaces
(Collection<String> interfaces) Adds a collection of interfaces.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
-