Package com.fauna.client
Class BaseFaunaClient
- java.lang.Object
-
- com.fauna.client.FaunaClient
-
- com.fauna.client.BaseFaunaClient
-
public final class BaseFaunaClient extends FaunaClient
FaunaClient is the main client for interacting with Fauna. It provides functionality to send queries and receive responses.
-
-
Field Summary
-
Fields inherited from class com.fauna.client.FaunaClient
DEFAULT_RETRY_STRATEGY, NO_RETRY_STRATEGY
-
-
Constructor Summary
Constructors Constructor Description BaseFaunaClient(FaunaConfig faunaConfig)
Construct a new FaunaClient instance with the provided FaunaConfig, using default HTTP config and retry strategy.BaseFaunaClient(FaunaConfig faunaConfig, java.net.http.HttpClient httpClient, RetryStrategy retryStrategy)
Construct a new FaunaClient instance with the provided FaunaConfig and HttpClient.
-
Method Summary
-
Methods inherited from class com.fauna.client.FaunaClient
asyncFeed, asyncQuery, asyncQuery, asyncQuery, asyncQuery, asyncQuery, asyncQueryPage, asyncStream, asyncStream, feed, feed, getFaunaSecret, getLastTransactionTs, getLogger, getStatsCollector, paginate, paginate, paginate, paginate, poll, query, query, query, query, query, queryPage, stream, stream
-
-
-
-
Constructor Detail
-
BaseFaunaClient
public BaseFaunaClient(FaunaConfig faunaConfig, java.net.http.HttpClient httpClient, RetryStrategy retryStrategy)
Construct a new FaunaClient instance with the provided FaunaConfig and HttpClient. This allows the user to have complete control over HTTP Configuration, like timeouts, thread pool size, and so-on.- Parameters:
faunaConfig
- The Fauna configuration settings.httpClient
- A Java HTTP client instance.retryStrategy
- An implementation of RetryStrategy.
-
BaseFaunaClient
public BaseFaunaClient(FaunaConfig faunaConfig)
Construct a new FaunaClient instance with the provided FaunaConfig, using default HTTP config and retry strategy.- Parameters:
faunaConfig
- The Fauna configuration settings.
-
-