Package com.fauna.client
Class FaunaConfig
- java.lang.Object
-
- com.fauna.client.FaunaConfig
-
public class FaunaConfig extends java.lang.Object
FaunaConfig is a configuration class used to set up and configure a connection to Fauna. It encapsulates various settings such as the endpoint URL, secret key, query timeout, and others.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FaunaConfig.Builder
Builder class for FaunaConfig.static class
FaunaConfig.FaunaEndpoint
static class
FaunaConfig.FaunaEnvironment
This class handles reading Fauna environment variables for the client.
-
Field Summary
Fields Modifier and Type Field Description static FaunaConfig
DEFAULT
static FaunaConfig
LOCAL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FaunaConfig.Builder
builder()
Creates a new builder for FaunaConfig.java.lang.String
getEndpoint()
Gets the Fauna endpoint URL.java.lang.String
getSecret()
Gets the secret key used for authentication.
-
-
-
Field Detail
-
DEFAULT
public static final FaunaConfig DEFAULT
-
LOCAL
public static final FaunaConfig LOCAL
-
-
Method Detail
-
getEndpoint
public java.lang.String getEndpoint()
Gets the Fauna endpoint URL.- Returns:
- A String representing the endpoint URL. The default is https://db.fauna.com
-
getSecret
public java.lang.String getSecret()
Gets the secret key used for authentication.- Returns:
- A String representing the secret key.
-
builder
public static FaunaConfig.Builder builder()
Creates a new builder for FaunaConfig.- Returns:
- A new instance of Builder.
-
-