Interface CosmosDbFactory


public interface CosmosDbFactory
Factory for CosmosDatabase or CosmosAsyncDatabase.
Author:
Daniel Sagenschneider
  • Method Summary

    Modifier and Type
    Method
    Description
    com.azure.cosmos.CosmosAsyncDatabase
    Creates the CosmosAsyncDatabase.
    com.azure.cosmos.CosmosDatabase
    Creates the CosmosDatabase.
  • Method Details

    • createCosmosDatabase

      com.azure.cosmos.CosmosDatabase createCosmosDatabase() throws Exception
      Creates the CosmosDatabase.
      Returns:
      CosmosClient.
      Throws:
      Exception - If fails to create CosmosDatabase.
    • createCosmosAsyncDatabase

      com.azure.cosmos.CosmosAsyncDatabase createCosmosAsyncDatabase() throws Exception
      Creates the CosmosAsyncDatabase.
      Returns:
      CosmosAsyncDatabase.
      Throws:
      Exception - If fails to create CosmosAsyncDatabase.