Enum Class CouchDBConfigurations

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

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

    • PORT

      public static final CouchDBConfigurations PORT
      The port connection to a client connect. The default value is "5984"
    • MAX_CONNECTIONS

      public static final CouchDBConfigurations MAX_CONNECTIONS
      The max of connection that the couchdb client have. The default value is "20"
    • CONNECTION_TIMEOUT

      public static final CouchDBConfigurations CONNECTION_TIMEOUT
      The timeout in milliseconds used when requesting a connection. The default value is "1000".
    • SOCKET_TIMEOUT

      public static final CouchDBConfigurations SOCKET_TIMEOUT
      The socket timeout in milliseconds, which is the timeout for waiting for data or, put differently, a maximum period inactivity between two consecutive data packets). The default value is "10000".
    • MAX_OBJECT_SIZE_BYTES

      public static final CouchDBConfigurations MAX_OBJECT_SIZE_BYTES
      The current maximum response body size that will be cached. The value is "8192".
    • MAX_CACHE_ENTRIES

      public static final CouchDBConfigurations MAX_CACHE_ENTRIES
      The maximum number of cache entries the cache will retain. The default value is "1000".
    • HOST

      public static final CouchDBConfigurations HOST
      The host at the database.
    • USER

      public static final CouchDBConfigurations USER
      The username used for HTTP Basic authentication with CouchDB.
    • PASSWORD

      public static final CouchDBConfigurations PASSWORD
      The password used for HTTP Basic authentication with CouchDB.
    • TOKEN

      public static final CouchDBConfigurations TOKEN
      The token used for Bearer authentication. Applicable only when authentication is 'bearer'.
    • ENABLE_SSL

      public static final CouchDBConfigurations ENABLE_SSL
      If the request use a https or a http.
    • COMPRESSION

      public static final CouchDBConfigurations COMPRESSION
      Determines whether compressed entities should be decompressed automatically.
  • Method Details

    • values

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