Package com.fauna.constants
Class Defaults
- java.lang.Object
-
- com.fauna.constants.Defaults
-
public final class Defaults extends java.lang.Object
Defines default constants used throughout the Fauna client.The
Defaults
class includes constants for configuration settings, such as timeouts, retry limits, and default secrets, that provide sensible defaults for common client operations.
-
-
Field Summary
Fields Modifier and Type Field Description static java.time.Duration
CLIENT_TIMEOUT_BUFFER
The buffer duration added to the client timeout to ensure safe execution time.static java.time.Duration
DEFAULT_TIMEOUT
The default timeout duration for client requests.static java.lang.String
LOCAL_FAUNA_SECRET
The default secret for local Fauna deployments created using the Fauna Docker image.static int
MAX_CONTENTION_RETRIES
The maximum number of retries allowed for handling transaction contention.
-
-
-
Field Detail
-
CLIENT_TIMEOUT_BUFFER
public static final java.time.Duration CLIENT_TIMEOUT_BUFFER
The buffer duration added to the client timeout to ensure safe execution time.
-
DEFAULT_TIMEOUT
public static final java.time.Duration DEFAULT_TIMEOUT
The default timeout duration for client requests.
-
LOCAL_FAUNA_SECRET
public static final java.lang.String LOCAL_FAUNA_SECRET
The default secret for local Fauna deployments created using the Fauna Docker image.- See Also:
- Constant Field Values
-
MAX_CONTENTION_RETRIES
public static final int MAX_CONTENTION_RETRIES
The maximum number of retries allowed for handling transaction contention.- See Also:
- Constant Field Values
-
-