Class ScopedFaunaClient


  • public final class ScopedFaunaClient
    extends FaunaClient
    ScopedFaunaClient is a subclass of FaunaClient that applies a scope to the client, limiting the actions and requests to the specified scope.
    • Constructor Detail

      • ScopedFaunaClient

        public ScopedFaunaClient​(FaunaClient client,
                                 FaunaScope scope)
        Constructs a new ScopedFaunaClient using the provided FaunaClient and FaunaScope.
        Parameters:
        client - The FaunaClient instance to base the scoped client on.
        scope - The FaunaScope defining the scope for this client.
    • Method Detail

      • getRetryStrategy

        public RetryStrategy getRetryStrategy()
        Gets the retry strategy for the scoped client.
        Returns:
        The retry strategy used by the client.
      • getHttpClient

        public java.net.http.HttpClient getHttpClient()
        Gets the HttpClient used by the scoped client.
        Returns:
        The HttpClient used for making HTTP requests.
      • getRequestBuilder

        public RequestBuilder getRequestBuilder()
        Gets the RequestBuilder for the scoped client.
        Returns:
        The RequestBuilder used for constructing HTTP requests.
      • getStreamRequestBuilder

        public RequestBuilder getStreamRequestBuilder()
        Gets the RequestBuilder for streaming requests.
        Returns:
        The RequestBuilder used for constructing streaming HTTP requests.
      • getFeedRequestBuilder

        public RequestBuilder getFeedRequestBuilder()
        Gets the RequestBuilder for feed requests.
        Returns:
        The RequestBuilder used for constructing feed HTTP requests.