Class InterfacesConfig

java.lang.Object
com.hazelcast.config.InterfacesConfig

public class InterfacesConfig
extends Object
Contains the configuration for Interfaces.
  • Constructor Details

    • InterfacesConfig

      public InterfacesConfig()
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Returns:
      true if the interface is enabled, false otherwise
    • setEnabled

      public InterfacesConfig setEnabled​(boolean enabled)
      Parameters:
      enabled - the enabled interface to set
    • addInterface

      public InterfacesConfig addInterface​(String ip)
      Adds a new interface
      Parameters:
      ip - the added interface
    • clear

      public InterfacesConfig clear()
      clears all interfaces.
    • getInterfaces

      public Collection<String> getInterfaces()
      Returns:
      a read-only collection of interfaces
    • setInterfaces

      public InterfacesConfig setInterfaces​(Collection<String> interfaces)
      Adds a collection of interfaces. Clears the current collection and then adds all entries of new collection.
      Parameters:
      interfaces - the interfaces to set
    • equals

      public final boolean equals​(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object