Package com.mongodb.stitch.core
Class StitchClientConfiguration
- java.lang.Object
-
- com.mongodb.stitch.core.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStitchClientConfiguration.BuilderA builder that can build aStitchClientConfigurationobject.
-
Method Summary
Modifier and Type Method Description StitchClientConfiguration.Builderbuilder()Gets the builder form of this configuration.StringgetBaseUrl()Gets the base URL of the Stitch server that the client will communicate with.CodecRegistrygetCodecRegistry()Gets the codec registry used to encode/decode JSON.StringgetDataDirectory()Gets the local directory in which Stitch can store any data (e.g.LonggetDefaultRequestTimeout()Gets the number of milliseconds that a `Transport` should spend by default on an HTTP round trip before failing with an error.NetworkMonitorgetNetworkMonitor()Gets the network monitor.StoragegetStorage()Gets the underlying storage to persist client specific data to.TransportgetTransport()Gets theTransportthat the client will use to make round trips to the Stitch server.
-
-
-
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 theTransportthat the client will use to make round trips to the Stitch server.- Returns:
- the
Transportthat 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.
-
builder
public StitchClientConfiguration.Builder builder()
Gets the builder form of this configuration.- Returns:
- the builder form of this configuration.
-
-