Class CosmosDbConfigurationOptionsProxy
- java.lang.Object
-
- org.apache.camel.component.azure.cosmosdb.CosmosDbConfigurationOptionsProxy
-
public class CosmosDbConfigurationOptionsProxy extends Object
A proxy class forCosmosDbConfigurationandCosmosDbConstants. Ideally this is responsible to obtain the correct configurations options either from configs or exchange headers
-
-
Constructor Summary
Constructors Constructor Description CosmosDbConfigurationOptionsProxy(CosmosDbConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CosmosDbConfigurationgetConfiguration()StringgetContainerName(org.apache.camel.Exchange exchange)StringgetContainerPartitionKeyPath(org.apache.camel.Exchange exchange)com.azure.cosmos.models.CosmosContainerRequestOptionsgetContainerRequestOptions(org.apache.camel.Exchange exchange)com.azure.cosmos.models.CosmosDatabaseRequestOptionsgetCosmosDatabaseRequestOptions(org.apache.camel.Exchange exchange)StringgetDatabaseName(org.apache.camel.Exchange exchange)ObjectgetItem(org.apache.camel.Exchange exchange)StringgetItemId(org.apache.camel.Exchange exchange)com.azure.cosmos.models.PartitionKeygetItemPartitionKey(org.apache.camel.Exchange exchange)com.azure.cosmos.models.CosmosItemRequestOptionsgetItemRequestOptions(org.apache.camel.Exchange exchange)List<Object>getItems(org.apache.camel.Exchange exchange)CosmosDbOperationsDefinitiongetOperation(org.apache.camel.Exchange exchange)StringgetQuery(org.apache.camel.Exchange exchange)com.azure.cosmos.models.CosmosQueryRequestOptionsgetQueryRequestOptions(org.apache.camel.Exchange exchange)com.azure.cosmos.models.ThroughputPropertiesgetThroughputProperties(org.apache.camel.Exchange exchange)booleanisCreateContainerIfNotExist(org.apache.camel.Exchange exchange)booleanisCreateDatabaseIfNotExist(org.apache.camel.Exchange exchange)<R> Supplier<R>nullFallback()
-
-
-
Constructor Detail
-
CosmosDbConfigurationOptionsProxy
public CosmosDbConfigurationOptionsProxy(CosmosDbConfiguration configuration)
-
-
Method Detail
-
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)
-
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)
-
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()
-
-