Interface EventHubsEndpointBuilderFactory.EventHubsEndpointProducerBuilder

  • All Superinterfaces:
    org.apache.camel.builder.EndpointProducerBuilder, org.apache.camel.EndpointProducerResolver
    All Known Subinterfaces:
    EventHubsEndpointBuilderFactory.EventHubsEndpointBuilder
    Enclosing interface:
    EventHubsEndpointBuilderFactory

    public static interface EventHubsEndpointBuilderFactory.EventHubsEndpointProducerBuilder
    extends org.apache.camel.builder.EndpointProducerBuilder
    Builder for endpoint producers for the Azure Event Hubs component.
    • Method Detail

      • amqpTransportType

        default EventHubsEndpointBuilderFactory.EventHubsEndpointProducerBuilder amqpTransportType​(String amqpTransportType)
        Sets the transport type by which all the communication with Azure Event Hubs occurs. Default value is AmqpTransportType#AMQP. The option will be converted to a com.azure.core.amqp.AmqpTransportType type. Default: AMQP Group: common
      • autoDiscoverClient

        default EventHubsEndpointBuilderFactory.EventHubsEndpointProducerBuilder autoDiscoverClient​(boolean autoDiscoverClient)
        Setting the autoDiscoverClient mechanism, if true, the component will look for a client instance in the registry automatically otherwise it will skip that checking. The option is a: boolean type. Default: true Group: common
      • autoDiscoverClient

        default EventHubsEndpointBuilderFactory.EventHubsEndpointProducerBuilder autoDiscoverClient​(String autoDiscoverClient)
        Setting the autoDiscoverClient mechanism, if true, the component will look for a client instance in the registry automatically otherwise it will skip that checking. The option will be converted to a boolean type. Default: true Group: common
      • lazyStartProducer

        default EventHubsEndpointBuilderFactory.EventHubsEndpointProducerBuilder lazyStartProducer​(boolean lazyStartProducer)
        Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. The option is a: boolean type. Default: false Group: producer
      • lazyStartProducer

        default EventHubsEndpointBuilderFactory.EventHubsEndpointProducerBuilder lazyStartProducer​(String lazyStartProducer)
        Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. The option will be converted to a boolean type. Default: false Group: producer
      • partitionId

        default EventHubsEndpointBuilderFactory.EventHubsEndpointProducerBuilder partitionId​(String partitionId)
        Sets the identifier of the Event Hub partition that the events will be sent to. If the identifier is not specified, the Event Hubs service will be responsible for routing events that are sent to an available partition. The option is a: java.lang.String type. Group: producer
      • partitionKey

        default EventHubsEndpointBuilderFactory.EventHubsEndpointProducerBuilder partitionKey​(String partitionKey)
        Sets a hashing key to be provided for the batch of events, which instructs the Event Hubs service to map this key to a specific partition. The selection of a partition is stable for a given partition hashing key. Should any other batches of events be sent using the same exact partition hashing key, the Event Hubs service will route them all to the same partition. This should be specified only when there is a need to group events by partition, but there is flexibility into which partition they are routed. If ensuring that a batch of events is sent only to a specific partition, it is recommended that the {link #setPartitionId(String) identifier of the position be specified directly} when sending the batch. The option is a: java.lang.String type. Group: producer
      • producerAsyncClient

        default EventHubsEndpointBuilderFactory.EventHubsEndpointProducerBuilder producerAsyncClient​(Object producerAsyncClient)
        Sets the EventHubProducerAsyncClient.An asynchronous producer responsible for transmitting EventData to a specific Event Hub, grouped together in batches. Depending on the options specified when creating an {linkEventDataBatch}, the events may be automatically routed to an available partition or specific to a partition. Use by this component to produce the data in camel producer. The option is a: com.azure.messaging.eventhubs.EventHubProducerAsyncClient type. Group: producer
      • producerAsyncClient

        default EventHubsEndpointBuilderFactory.EventHubsEndpointProducerBuilder producerAsyncClient​(String producerAsyncClient)
        Sets the EventHubProducerAsyncClient.An asynchronous producer responsible for transmitting EventData to a specific Event Hub, grouped together in batches. Depending on the options specified when creating an {linkEventDataBatch}, the events may be automatically routed to an available partition or specific to a partition. Use by this component to produce the data in camel producer. The option will be converted to a com.azure.messaging.eventhubs.EventHubProducerAsyncClient type. Group: producer
      • connectionString

        default EventHubsEndpointBuilderFactory.EventHubsEndpointProducerBuilder connectionString​(String connectionString)
        Instead of supplying namespace, sharedAccessKey, sharedAccessName ... etc, you can just supply the connection string for your eventHub. The connection string for EventHubs already include all the necessary information to connection to your EventHub. To learn on 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.String type. Group: security