Enum Class HazelcastConfigurations

java.lang.Object
java.lang.Enum<HazelcastConfigurations>
org.eclipse.jnosql.databases.hazelcast.communication.HazelcastConfigurations
All Implemented Interfaces:
Serializable, Comparable<HazelcastConfigurations>, Constable, Supplier<String>

public enum HazelcastConfigurations extends Enum<HazelcastConfigurations> implements Supplier<String>
An enumeration to show the available options to connect to the Hazelcast database. It implements Supplier, where its it returns the property name that might be overwritten by the system environment using Eclipse Microprofile or Jakarta Config API.
See Also:
  • Settings
  • Enum Constant Details

    • INSTANCE

      public static final HazelcastConfigurations INSTANCE
      The instance name uniquely identifying the hazelcast instance created by this configuration. This name is used in different scenarios, such as identifying the hazelcast instance when running multiple instances in the same JVM.
    • HOST

      public static final HazelcastConfigurations HOST
      Database's host. It is a prefix to enumerate hosts. E.g.: jnosql.hazelcast.host.1=localhost
    • PORT

      public static final HazelcastConfigurations PORT
      The database port
    • PORT_COUNT

      public static final HazelcastConfigurations PORT_COUNT
      The maximum number of ports allowed to use.
    • PORT_AUTO_INCREMENT

      public static final HazelcastConfigurations PORT_AUTO_INCREMENT
      Sets if a Hazelcast member is allowed to find a free port by incrementing the port number when it encounters an occupied port.
    • MULTICAST_ENABLE

      public static final HazelcastConfigurations MULTICAST_ENABLE
      Enables or disables the multicast discovery mechanism
    • TCP_IP_JOIN

      public static final HazelcastConfigurations TCP_IP_JOIN
      Enables or disables the Tcp/Ip join mechanism.
  • Method Details

    • values

      public static HazelcastConfigurations[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static HazelcastConfigurations valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • get

      public String get()
      Specified by:
      get in interface Supplier<String>