Class NoSQLConfig
Represents configuration required to instantiate
NoSQLClient instance.
Assembly: Oracle.NoSQL.SDK.dll
Syntax
public class NoSQLConfig : Object
Examples
Initializing NoSQLConfig instance.
var config = new NoSQLConfig
{
ServiceType = ServiceType.Cloud,
Region = Region.AP_MUMBAI_1,
Timeout = TimeSpan.FromSeconds(15),
RetryHandler = new NoSQLRetryHandler
{
MaxRetryAttempts = 20,
BaseDelay = TimeSpan.FromSeconds(2),
ControlOperationBaseDelay = TimeSpan.FromMinutes(2)
},
AuthorizationProvider = new IAMAuthorizationProvider(
"~/my_app/.oci/config", "Jane")
};
Representing NoSQLConfig instance in JSON. This is the
same configuration as in the first example.
{
"ServiceType": "Cloud",
"Region": "AP_MUMBAI_1",
"Timeout": 15000,
"RetryHandler": {
"MaxRetryAttempts": 20,
"BaseDelay": 2000,
"ControlOperationBaseDelay": 120000
},
"AuthorizationType": "IAM",
"AuthorizationProvider": {
"ConfigFile": "~/my_app/.oci/config",
"ProfileName": "Jane"
}
}
Constructors
Fields
Name |
Description |
NoRetries
|
Retry handler instance that disables all operation retries.
|
Properties
Name |
Description |
AdminPollDelay
|
Gets or sets the delay between successive polls when waiting for
completion of an DDL operation.
|
AdminPollTimeout
|
Gets or sets the timeout to wait for completion of an admin DDL
operation.
|
AdminTimeout
|
Gets or sets a timeout for admin DDL operations.
|
AuthorizationProvider
|
Gets or sets the authorization provider.
|
Compartment
|
Cloud service only. Gets or sets a compartment id or a
compartment name for operations with this
NoSQLClient instance.
|
ConnectionOptions
|
Gets or sets network connection options.
|
Consistency
|
Gets or sets a Consistency used for read operations.
|
Durability
|
On-Premise only.
Gets or sets a Durability used for write operations.
|
Endpoint
|
Gets or sets the endpoint to use to connect to Oracle NoSQL
Database Service.
|
MaxMemoryMB
|
Gets or sets the maximum amount of memory in megabytes that can be
used by the driver-side portion of a query.
|
Namespace
|
On-premises only.
Gets or sets the default namespace for operations with this
NoSQLClient instance.
|
RateLimiterCreator
|
For Cloud Service or Cloud Simulator only.
Gets or sets a delegate used to create custom rate limiter
instances.
|
RateLimiterPercent
|
For Cloud Service or Cloud Simulator only.
Gets or sets the percentage of table limits used for rate
limiting.
|
RateLimitingEnabled
|
For Cloud Service or Cloud Simulator only.
Gets or sets the value that determines whether to enable rate
limiting based on table limits.
|
Region
|
Cloud Service Only. Gets or sets a region to use to connect to
the Oracle NoSQL Database Cloud Service.
|
RetryHandler
|
Gets or sets the handler for operation retries.
|
ServiceType
|
Gets or sets the type of Oracle NoSQL service to use.
|
TableDDLTimeout
|
Gets or sets a timeout for table DDL operations.
|
TablePollDelay
|
Gets or sets the delay between successive polls when waiting for
completion of a table DDL operation.
|
TablePollTimeout
|
Gets or sets the timeout to wait for completion of a table DDL
operation.
|
Timeout
|
Gets or sets a timeout for non-DDL operations.
|
Methods