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