Class StitchClientConfiguration

  • Direct Known Subclasses:
    StitchAppClientConfiguration

    public class StitchClientConfiguration
    extends Object
    Properties representing the configuration of a client that communicate with a particular MongoDB Stitch application.
    • Method Detail

      • getBaseUrl

        public String getBaseUrl()
        Gets the base URL of the Stitch server that the client will communicate with.
        Returns:
        the base URL of the Stitch server that the client will communicate with.
      • getStorage

        public Storage getStorage()
        Gets the underlying storage to persist client specific data to.
        Returns:
        the underlying storage to persist client specific data to.
      • getDataDirectory

        public String getDataDirectory()
        Gets the local directory in which Stitch can store any data (e.g. embedded MongoDB data directory).
        Returns:
        the local directory in which Stitch can store any data.
      • getTransport

        public Transport getTransport()
        Gets the Transport that the client will use to make round trips to the Stitch server.
        Returns:
        the Transport that the client will use to make round trips to the Stitch server.
      • getDefaultRequestTimeout

        public Long getDefaultRequestTimeout()
        Gets the number of milliseconds that a `Transport` should spend by default on an HTTP round trip before failing with an error. Important: If a request timeout was specified for a specific operation, for example in a function call, that timeout will override this one.
        Returns:
        the number of milliseconds that a `Transport` should spend by default on an HTTP round trip before failing with an error.
      • getCodecRegistry

        public CodecRegistry getCodecRegistry()
        Gets the codec registry used to encode/decode JSON.
        Returns:
        the codec registry used to encode/decode JSON.
      • getNetworkMonitor

        public NetworkMonitor getNetworkMonitor()
        Gets the network monitor.
        Returns:
        the network monitor.