Interface EventHubsEndpointBuilderFactory.EventHubsEndpointConsumerBuilder
- All Superinterfaces:
org.apache.camel.builder.EndpointConsumerBuilder,org.apache.camel.EndpointConsumerResolver
- All Known Subinterfaces:
EventHubsEndpointBuilderFactory.EventHubsEndpointBuilder
- Enclosing interface:
EventHubsEndpointBuilderFactory
public static interface EventHubsEndpointBuilderFactory.EventHubsEndpointConsumerBuilder
extends org.apache.camel.builder.EndpointConsumerBuilder
Builder for endpoint consumers for the Azure Event Hubs component.
-
Method Summary
Modifier and TypeMethodDescriptionadvanced()amqpRetryOptions(com.azure.core.amqp.AmqpRetryOptions amqpRetryOptions) Sets the retry policy for EventHubProducerAsyncClient.amqpRetryOptions(String amqpRetryOptions) Sets the retry policy for EventHubProducerAsyncClient.amqpTransportType(com.azure.core.amqp.AmqpTransportType amqpTransportType) Sets the transport type by which all the communication with Azure Event Hubs occurs.amqpTransportType(String amqpTransportType) Sets the transport type by which all the communication with Azure Event Hubs occurs.blobAccessKey(String blobAccessKey) In case you chose the default BlobCheckpointStore, this sets access key for the associated azure account name to be used for authentication with azure blob services.blobAccountName(String blobAccountName) In case you chose the default BlobCheckpointStore, this sets Azure account name to be used for authentication with azure blob services.blobContainerName(String blobContainerName) In case you chose the default BlobCheckpointStore, this sets the blob container that shall be used by the BlobCheckpointStore to store the checkpoint offsets.blobStorageSharedKeyCredential(com.azure.storage.common.StorageSharedKeyCredential blobStorageSharedKeyCredential) In case you chose the default BlobCheckpointStore, StorageSharedKeyCredential can be injected to create the azure client, this holds the important authentication information.blobStorageSharedKeyCredential(String blobStorageSharedKeyCredential) In case you chose the default BlobCheckpointStore, StorageSharedKeyCredential can be injected to create the azure client, this holds the important authentication information.checkpointBatchSize(int checkpointBatchSize) Sets the batch size between each checkpoint update.checkpointBatchSize(String checkpointBatchSize) Sets the batch size between each checkpoint update.checkpointBatchTimeout(int checkpointBatchTimeout) Sets the batch timeout between each checkpoint update.checkpointBatchTimeout(String checkpointBatchTimeout) Sets the batch timeout between each checkpoint update.checkpointStore(com.azure.messaging.eventhubs.CheckpointStore checkpointStore) Sets the CheckpointStore the EventProcessorClient will use for storing partition ownership and checkpoint information.checkpointStore(String checkpointStore) Sets the CheckpointStore the EventProcessorClient will use for storing partition ownership and checkpoint information.connectionString(String connectionString) Instead of supplying namespace, sharedAccessKey, sharedAccessName, etc. you can supply the connection string for your eventHub.consumerGroupName(String consumerGroupName) Sets the name of the consumer group this consumer is associated with.credentialType(String credentialType) Determines the credential strategy to adopt.credentialType(org.apache.camel.component.azure.eventhubs.CredentialType credentialType) Determines the credential strategy to adopt.eventPosition(String eventPosition) Sets the map containing the event position to use for each partition if a checkpoint for the partition does not exist in CheckpointStore.eventPosition(Map<String, com.azure.messaging.eventhubs.models.EventPosition> eventPosition) Sets the map containing the event position to use for each partition if a checkpoint for the partition does not exist in CheckpointStore.prefetchCount(int prefetchCount) Sets the count used by the receiver to control the number of events the Event Hub consumer will actively receive and queue locally without regard to whether a receive operation is currently active.prefetchCount(String prefetchCount) Sets the count used by the receiver to control the number of events the Event Hub consumer will actively receive and queue locally without regard to whether a receive operation is currently active.sharedAccessKey(String sharedAccessKey) The generated value for the SharedAccessName.sharedAccessName(String sharedAccessName) The name you chose for your EventHubs SAS keys.tokenCredential(com.azure.core.credential.TokenCredential tokenCredential) Provide custom authentication credentials using an implementation of TokenCredential.tokenCredential(String tokenCredential) Provide custom authentication credentials using an implementation of TokenCredential.Methods inherited from interface org.apache.camel.builder.EndpointConsumerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUri, getUriMethods inherited from interface org.apache.camel.EndpointConsumerResolver
resolve, resolve
-
Method Details
-
advanced
-
amqpRetryOptions
default EventHubsEndpointBuilderFactory.EventHubsEndpointConsumerBuilder amqpRetryOptions(com.azure.core.amqp.AmqpRetryOptions amqpRetryOptions) Sets the retry policy for EventHubProducerAsyncClient. If not specified, the default retry options are used. The option is a:com.azure.core.amqp.AmqpRetryOptionstype. Group: common- Parameters:
amqpRetryOptions- the value to set- Returns:
- the dsl builder
-
amqpRetryOptions
default EventHubsEndpointBuilderFactory.EventHubsEndpointConsumerBuilder amqpRetryOptions(String amqpRetryOptions) Sets the retry policy for EventHubProducerAsyncClient. If not specified, the default retry options are used. The option will be converted to acom.azure.core.amqp.AmqpRetryOptionstype. Group: common- Parameters:
amqpRetryOptions- the value to set- Returns:
- the dsl builder
-
amqpTransportType
default EventHubsEndpointBuilderFactory.EventHubsEndpointConsumerBuilder amqpTransportType(com.azure.core.amqp.AmqpTransportType amqpTransportType) Sets the transport type by which all the communication with Azure Event Hubs occurs. The option is a:com.azure.core.amqp.AmqpTransportTypetype. Default: AMQP Group: common- Parameters:
amqpTransportType- the value to set- Returns:
- the dsl builder
-
amqpTransportType
default EventHubsEndpointBuilderFactory.EventHubsEndpointConsumerBuilder amqpTransportType(String amqpTransportType) Sets the transport type by which all the communication with Azure Event Hubs occurs. The option will be converted to acom.azure.core.amqp.AmqpTransportTypetype. Default: AMQP Group: common- Parameters:
amqpTransportType- the value to set- Returns:
- the dsl builder
-
blobAccessKey
default EventHubsEndpointBuilderFactory.EventHubsEndpointConsumerBuilder blobAccessKey(String blobAccessKey) In case you chose the default BlobCheckpointStore, this sets access key for the associated azure account name to be used for authentication with azure blob services. The option is a:java.lang.Stringtype. Group: consumer- Parameters:
blobAccessKey- the value to set- Returns:
- the dsl builder
-
blobAccountName
default EventHubsEndpointBuilderFactory.EventHubsEndpointConsumerBuilder blobAccountName(String blobAccountName) In case you chose the default BlobCheckpointStore, this sets Azure account name to be used for authentication with azure blob services. The option is a:java.lang.Stringtype. Group: consumer- Parameters:
blobAccountName- the value to set- Returns:
- the dsl builder
-
blobContainerName
default EventHubsEndpointBuilderFactory.EventHubsEndpointConsumerBuilder blobContainerName(String blobContainerName) In case you chose the default BlobCheckpointStore, this sets the blob container that shall be used by the BlobCheckpointStore to store the checkpoint offsets. The option is a:java.lang.Stringtype. Group: consumer- Parameters:
blobContainerName- the value to set- Returns:
- the dsl builder
-
checkpointBatchSize
default EventHubsEndpointBuilderFactory.EventHubsEndpointConsumerBuilder checkpointBatchSize(int checkpointBatchSize) Sets the batch size between each checkpoint update. Works jointly with checkpointBatchTimeout. The option is a:inttype. Default: 500 Group: consumer- Parameters:
checkpointBatchSize- the value to set- Returns:
- the dsl builder
-
checkpointBatchSize
default EventHubsEndpointBuilderFactory.EventHubsEndpointConsumerBuilder checkpointBatchSize(String checkpointBatchSize) Sets the batch size between each checkpoint update. Works jointly with checkpointBatchTimeout. The option will be converted to ainttype. Default: 500 Group: consumer- Parameters:
checkpointBatchSize- the value to set- Returns:
- the dsl builder
-
checkpointBatchTimeout
default EventHubsEndpointBuilderFactory.EventHubsEndpointConsumerBuilder checkpointBatchTimeout(int checkpointBatchTimeout) Sets the batch timeout between each checkpoint update. Works jointly with checkpointBatchSize. The option is a:inttype. Default: 5000 Group: consumer- Parameters:
checkpointBatchTimeout- the value to set- Returns:
- the dsl builder
-
checkpointBatchTimeout
default EventHubsEndpointBuilderFactory.EventHubsEndpointConsumerBuilder checkpointBatchTimeout(String checkpointBatchTimeout) Sets the batch timeout between each checkpoint update. Works jointly with checkpointBatchSize. The option will be converted to ainttype. Default: 5000 Group: consumer- Parameters:
checkpointBatchTimeout- the value to set- Returns:
- the dsl builder
-
checkpointStore
default EventHubsEndpointBuilderFactory.EventHubsEndpointConsumerBuilder checkpointStore(com.azure.messaging.eventhubs.CheckpointStore checkpointStore) Sets the CheckpointStore the EventProcessorClient will use for storing partition ownership and checkpoint information. Users can, optionally, provide their own implementation of CheckpointStore which will store ownership and checkpoint information. By default, it's set to use com.azure.messaging.eventhubs.checkpointstore.blob.BlobCheckpointStore which stores all checkpoint offsets into Azure Blob Storage. The option is a:com.azure.messaging.eventhubs.CheckpointStoretype. Default: BlobCheckpointStore Group: consumer- Parameters:
checkpointStore- the value to set- Returns:
- the dsl builder
-
checkpointStore
default EventHubsEndpointBuilderFactory.EventHubsEndpointConsumerBuilder checkpointStore(String checkpointStore) Sets the CheckpointStore the EventProcessorClient will use for storing partition ownership and checkpoint information. Users can, optionally, provide their own implementation of CheckpointStore which will store ownership and checkpoint information. By default, it's set to use com.azure.messaging.eventhubs.checkpointstore.blob.BlobCheckpointStore which stores all checkpoint offsets into Azure Blob Storage. The option will be converted to acom.azure.messaging.eventhubs.CheckpointStoretype. Default: BlobCheckpointStore Group: consumer- Parameters:
checkpointStore- the value to set- Returns:
- the dsl builder
-
consumerGroupName
default EventHubsEndpointBuilderFactory.EventHubsEndpointConsumerBuilder consumerGroupName(String consumerGroupName) Sets the name of the consumer group this consumer is associated with. Events are read in the context of this group. The name of the consumer group that is created by default is $Default. The option is a:java.lang.Stringtype. Default: $Default Group: consumer- Parameters:
consumerGroupName- the value to set- Returns:
- the dsl builder
-
eventPosition
default EventHubsEndpointBuilderFactory.EventHubsEndpointConsumerBuilder eventPosition(Map<String, com.azure.messaging.eventhubs.models.EventPosition> eventPosition) Sets the map containing the event position to use for each partition if a checkpoint for the partition does not exist in CheckpointStore. This map is keyed off of the partition id. If there is no checkpoint in CheckpointStore and there is no entry in this map, the processing of the partition will start from EventPosition#latest() position. The option is a:java.util.Map<java.lang.String, com.azure.messaging.eventhubs.models.EventPosition>type. Group: consumer- Parameters:
eventPosition- the value to set- Returns:
- the dsl builder
-
eventPosition
default EventHubsEndpointBuilderFactory.EventHubsEndpointConsumerBuilder eventPosition(String eventPosition) Sets the map containing the event position to use for each partition if a checkpoint for the partition does not exist in CheckpointStore. This map is keyed off of the partition id. If there is no checkpoint in CheckpointStore and there is no entry in this map, the processing of the partition will start from EventPosition#latest() position. The option will be converted to ajava.util.Map<java.lang.String, com.azure.messaging.eventhubs.models.EventPosition>type. Group: consumer- Parameters:
eventPosition- the value to set- Returns:
- the dsl builder
-
prefetchCount
default EventHubsEndpointBuilderFactory.EventHubsEndpointConsumerBuilder prefetchCount(int prefetchCount) Sets the count used by the receiver to control the number of events the Event Hub consumer will actively receive and queue locally without regard to whether a receive operation is currently active. The option is a:inttype. Default: 500 Group: consumer- Parameters:
prefetchCount- the value to set- Returns:
- the dsl builder
-
prefetchCount
default EventHubsEndpointBuilderFactory.EventHubsEndpointConsumerBuilder prefetchCount(String prefetchCount) Sets the count used by the receiver to control the number of events the Event Hub consumer will actively receive and queue locally without regard to whether a receive operation is currently active. The option will be converted to ainttype. Default: 500 Group: consumer- Parameters:
prefetchCount- the value to set- Returns:
- the dsl builder
-
connectionString
default EventHubsEndpointBuilderFactory.EventHubsEndpointConsumerBuilder connectionString(String connectionString) Instead of supplying namespace, sharedAccessKey, sharedAccessName, etc. you can supply the connection string for your eventHub. The connection string for EventHubs already includes all the necessary information to connect to your EventHub. To learn how to generate the connection string, take a look at this documentation: https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-get-connection-string. The option is a:java.lang.Stringtype. Group: security- Parameters:
connectionString- the value to set- Returns:
- the dsl builder
-
credentialType
default EventHubsEndpointBuilderFactory.EventHubsEndpointConsumerBuilder credentialType(org.apache.camel.component.azure.eventhubs.CredentialType credentialType) Determines the credential strategy to adopt. The option is a:org.apache.camel.component.azure.eventhubs.CredentialTypetype. Default: CONNECTION_STRING Group: security- Parameters:
credentialType- the value to set- Returns:
- the dsl builder
-
credentialType
default EventHubsEndpointBuilderFactory.EventHubsEndpointConsumerBuilder credentialType(String credentialType) Determines the credential strategy to adopt. The option will be converted to aorg.apache.camel.component.azure.eventhubs.CredentialTypetype. Default: CONNECTION_STRING Group: security- Parameters:
credentialType- the value to set- Returns:
- the dsl builder
-
tokenCredential
default EventHubsEndpointBuilderFactory.EventHubsEndpointConsumerBuilder tokenCredential(com.azure.core.credential.TokenCredential tokenCredential) Provide custom authentication credentials using an implementation of TokenCredential. The option is a:com.azure.core.credential.TokenCredentialtype. Group: security- Parameters:
tokenCredential- the value to set- Returns:
- the dsl builder
-
tokenCredential
default EventHubsEndpointBuilderFactory.EventHubsEndpointConsumerBuilder tokenCredential(String tokenCredential) Provide custom authentication credentials using an implementation of TokenCredential. The option will be converted to acom.azure.core.credential.TokenCredentialtype. Group: security- Parameters:
tokenCredential- the value to set- Returns:
- the dsl builder
-