public class CosmosFactory extends Object
| Constructor and Description |
|---|
CosmosFactory(CosmosAsyncClient cosmosAsyncClient,
String databaseName)
Validate config and initialization
|
| Modifier and Type | Method and Description |
|---|---|
static CosmosAsyncClient |
createCosmosAsyncClient(CosmosClientBuilder cosmosClientBuilder)
Create Cosmos Async Client
|
CosmosAsyncClient |
getCosmosAsyncClient()
To create a CosmosAsyncClient
|
String |
getDatabaseName()
Get Cosmos Database Name
|
public CosmosFactory(CosmosAsyncClient cosmosAsyncClient, String databaseName)
cosmosAsyncClient - cosmosAsyncClientdatabaseName - databaseNamepublic CosmosAsyncClient getCosmosAsyncClient()
public String getDatabaseName()
public static CosmosAsyncClient createCosmosAsyncClient(CosmosClientBuilder cosmosClientBuilder)
cosmosClientBuilder - CosmosClientBuilderCopyright © 2021 Microsoft Corporation. All rights reserved.