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>
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDetermines whether compressed entities should be decompressed automatically.The timeout in milliseconds used when requesting a connection.If the request use a https or a http.The host at the database.The maximum number of cache entries the cache will retain.The max of connection that the couchdb client have.The current maximum response body size that will be cached.The password used for HTTP Basic authentication with CouchDB.The port connection to a client connect.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 token used for Bearer authentication.The username used for HTTP Basic authentication with CouchDB. -
Method Summary
Modifier and TypeMethodDescriptionget()static CouchDBConfigurationsReturns the enum constant of this class with the specified name.static CouchDBConfigurations[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PORT
The port connection to a client connect. The default value is "5984" -
MAX_CONNECTIONS
The max of connection that the couchdb client have. The default value is "20" -
CONNECTION_TIMEOUT
The timeout in milliseconds used when requesting a connection. The default value is "1000". -
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
The current maximum response body size that will be cached. The value is "8192". -
MAX_CACHE_ENTRIES
The maximum number of cache entries the cache will retain. The default value is "1000". -
HOST
The host at the database. -
USER
The username used for HTTP Basic authentication with CouchDB. -
PASSWORD
The password used for HTTP Basic authentication with CouchDB. -
TOKEN
The token used for Bearer authentication. Applicable only when authentication is 'bearer'. -
ENABLE_SSL
If the request use a https or a http. -
COMPRESSION
Determines whether compressed entities should be decompressed automatically.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
get
-