Enum Class CassandraConfigurations

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

public enum CassandraConfigurations extends Enum<CassandraConfigurations> implements Supplier<String>
An enumeration to show the available options to connect to the Cassandra 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

    • USER

      public static final CassandraConfigurations USER
      The user's credential.
    • PASSWORD

      public static final CassandraConfigurations PASSWORD
      The password's credential
    • HOST

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

      public static final CassandraConfigurations NAME
      The name of the application using the created session.
    • PORT

      public static final CassandraConfigurations PORT
      The cassandra's port
    • QUERY

      public static final CassandraConfigurations QUERY
      The Cassandra CQL to execute when the configuration starts. It uses as a prefix. E.g.: jnosql.cassandra.query.1=CQL
    • DATA_CENTER

      public static final CassandraConfigurations DATA_CENTER
      The datacenter that is considered "local" by the load balancing policy.
  • Method Details

    • values

      public static CassandraConfigurations[] 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 CassandraConfigurations 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>