Class CosmosDbConfigurationOptionsProxy

java.lang.Object
org.apache.camel.component.azure.cosmosdb.CosmosDbConfigurationOptionsProxy

public class CosmosDbConfigurationOptionsProxy extends Object
A proxy class for CosmosDbConfiguration and CosmosDbConstants. Ideally this is responsible to obtain the correct configurations options either from configs or exchange headers
  • Constructor Details

    • CosmosDbConfigurationOptionsProxy

      public CosmosDbConfigurationOptionsProxy(CosmosDbConfiguration configuration)
  • Method Details

    • getDatabaseName

      public String getDatabaseName(org.apache.camel.Exchange exchange)
    • getThroughputProperties

      public com.azure.cosmos.models.ThroughputProperties getThroughputProperties(org.apache.camel.Exchange exchange)
    • getCosmosDatabaseRequestOptions

      public com.azure.cosmos.models.CosmosDatabaseRequestOptions getCosmosDatabaseRequestOptions(org.apache.camel.Exchange exchange)
    • getQueryRequestOptions

      public com.azure.cosmos.models.CosmosQueryRequestOptions getQueryRequestOptions(org.apache.camel.Exchange exchange)
    • isCreateDatabaseIfNotExist

      public boolean isCreateDatabaseIfNotExist(org.apache.camel.Exchange exchange)
    • isCreateContainerIfNotExist

      public boolean isCreateContainerIfNotExist(org.apache.camel.Exchange exchange)
    • getOperation

      public CosmosDbOperationsDefinition getOperation(org.apache.camel.Exchange exchange)
    • getQuery

      public String getQuery(org.apache.camel.Exchange exchange)
    • getContainerName

      public String getContainerName(org.apache.camel.Exchange exchange)
    • getContainerPartitionKeyPath

      public String getContainerPartitionKeyPath(org.apache.camel.Exchange exchange)
    • getIndexingPolicy

      public com.azure.cosmos.models.IndexingPolicy getIndexingPolicy(org.apache.camel.Exchange exchange)
    • getContainerRequestOptions

      public com.azure.cosmos.models.CosmosContainerRequestOptions getContainerRequestOptions(org.apache.camel.Exchange exchange)
    • getItemPartitionKey

      public com.azure.cosmos.models.PartitionKey getItemPartitionKey(org.apache.camel.Exchange exchange)
    • getItem

      public Object getItem(org.apache.camel.Exchange exchange)
    • getItems

      public List<Object> getItems(org.apache.camel.Exchange exchange)
    • getItemId

      public String getItemId(org.apache.camel.Exchange exchange)
    • getItemRequestOptions

      public com.azure.cosmos.models.CosmosItemRequestOptions getItemRequestOptions(org.apache.camel.Exchange exchange)
    • getConfiguration

      public CosmosDbConfiguration getConfiguration()
    • nullFallback

      public <R> Supplier<R> nullFallback()