Class CosmosDbConnect


  • public class CosmosDbConnect
    extends java.lang.Object
    CosmosDatabase connect functionality.
    Author:
    Daniel Sagenschneider
    • Method Detail

      • createCosmosClientBuilder

        public static com.azure.cosmos.CosmosClientBuilder createCosmosClientBuilder​(SourceContext context)
                                                                              throws java.lang.Exception
        Creates the CosmosClientBuilder to connect to CosmosDatabase / CosmosAsyncDatabase.
        Parameters:
        context - SourceContext.
        Returns:
        CosmosClientBuilder.
        Throws:
        java.lang.Exception - If fails to connect.