Interface ServiceBusEndpointBuilderFactory.ServiceBusEndpointConsumerBuilder

  • All Superinterfaces:
    org.apache.camel.builder.EndpointConsumerBuilder, org.apache.camel.EndpointConsumerResolver
    All Known Subinterfaces:
    ServiceBusEndpointBuilderFactory.ServiceBusEndpointBuilder
    Enclosing interface:
    ServiceBusEndpointBuilderFactory

    public static interface ServiceBusEndpointBuilderFactory.ServiceBusEndpointConsumerBuilder
    extends org.apache.camel.builder.EndpointConsumerBuilder
    Builder for endpoint consumers for the Azure ServiceBus component.
    • Method Detail

      • amqpRetryOptions

        default ServiceBusEndpointBuilderFactory.ServiceBusEndpointConsumerBuilder amqpRetryOptions​(Object amqpRetryOptions)
        Sets the retry options for Service Bus clients. If not specified, the default retry options are used. The option is a: <code>com.azure.core.amqp.AmqpRetryOptions</code> type. Group: common
        Parameters:
        amqpRetryOptions - the value to set
        Returns:
        the dsl builder
      • amqpRetryOptions

        default ServiceBusEndpointBuilderFactory.ServiceBusEndpointConsumerBuilder amqpRetryOptions​(String amqpRetryOptions)
        Sets the retry options for Service Bus clients. If not specified, the default retry options are used. The option will be converted to a <code>com.azure.core.amqp.AmqpRetryOptions</code> type. Group: common
        Parameters:
        amqpRetryOptions - the value to set
        Returns:
        the dsl builder
      • amqpTransportType

        default ServiceBusEndpointBuilderFactory.ServiceBusEndpointConsumerBuilder amqpTransportType​(String amqpTransportType)
        Sets the transport type by which all the communication with Azure Service Bus occurs. Default value is AmqpTransportType#AMQP. The option will be converted to a <code>com.azure.core.amqp.AmqpTransportType</code> type. Default: AMQP Group: common
        Parameters:
        amqpTransportType - the value to set
        Returns:
        the dsl builder
      • clientOptions

        default ServiceBusEndpointBuilderFactory.ServiceBusEndpointConsumerBuilder clientOptions​(Object clientOptions)
        Sets the ClientOptions to be sent from the client built from this builder, enabling customization of certain properties, as well as support the addition of custom header information. Refer to the ClientOptions documentation for more information. The option is a: <code>com.azure.core.util.ClientOptions</code> type. Group: common
        Parameters:
        clientOptions - the value to set
        Returns:
        the dsl builder
      • clientOptions

        default ServiceBusEndpointBuilderFactory.ServiceBusEndpointConsumerBuilder clientOptions​(String clientOptions)
        Sets the ClientOptions to be sent from the client built from this builder, enabling customization of certain properties, as well as support the addition of custom header information. Refer to the ClientOptions documentation for more information. The option will be converted to a <code>com.azure.core.util.ClientOptions</code> type. Group: common
        Parameters:
        clientOptions - the value to set
        Returns:
        the dsl builder
      • proxyOptions

        default ServiceBusEndpointBuilderFactory.ServiceBusEndpointConsumerBuilder proxyOptions​(Object proxyOptions)
        Sets the proxy configuration to use for ServiceBusSenderAsyncClient. When a proxy is configured, AmqpTransportType#AMQP_WEB_SOCKETS must be used for the transport type. The option is a: <code>com.azure.core.amqp.ProxyOptions</code> type. Group: common
        Parameters:
        proxyOptions - the value to set
        Returns:
        the dsl builder
      • proxyOptions

        default ServiceBusEndpointBuilderFactory.ServiceBusEndpointConsumerBuilder proxyOptions​(String proxyOptions)
        Sets the proxy configuration to use for ServiceBusSenderAsyncClient. When a proxy is configured, AmqpTransportType#AMQP_WEB_SOCKETS must be used for the transport type. The option will be converted to a <code>com.azure.core.amqp.ProxyOptions</code> type. Group: common
        Parameters:
        proxyOptions - the value to set
        Returns:
        the dsl builder
      • serviceBusType

        default ServiceBusEndpointBuilderFactory.ServiceBusEndpointConsumerBuilder serviceBusType​(String serviceBusType)
        The service bus type of connection to execute. Queue is for typical queue option and topic for subscription based model. The option will be converted to a <code>org.apache.camel.component.azure.servicebus.ServiceBusType</code> type. Required: true Default: queue Group: common
        Parameters:
        serviceBusType - the value to set
        Returns:
        the dsl builder
      • bridgeErrorHandler

        default ServiceBusEndpointBuilderFactory.ServiceBusEndpointConsumerBuilder bridgeErrorHandler​(boolean bridgeErrorHandler)
        Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. The option is a: <code>boolean</code> type. Default: false Group: consumer
        Parameters:
        bridgeErrorHandler - the value to set
        Returns:
        the dsl builder
      • bridgeErrorHandler

        default ServiceBusEndpointBuilderFactory.ServiceBusEndpointConsumerBuilder bridgeErrorHandler​(String bridgeErrorHandler)
        Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. The option will be converted to a <code>boolean</code> type. Default: false Group: consumer
        Parameters:
        bridgeErrorHandler - the value to set
        Returns:
        the dsl builder
      • consumerOperation

        default ServiceBusEndpointBuilderFactory.ServiceBusEndpointConsumerBuilder consumerOperation​(String consumerOperation)
        Sets the desired operation to be used in the consumer. The option will be converted to a <code>org.apache.camel.component.azure.servicebus.ServiceBusConsumerOperationDefinition</code> type. Default: receiveMessages Group: consumer
        Parameters:
        consumerOperation - the value to set
        Returns:
        the dsl builder
      • disableAutoComplete

        default ServiceBusEndpointBuilderFactory.ServiceBusEndpointConsumerBuilder disableAutoComplete​(boolean disableAutoComplete)
        Disables auto-complete and auto-abandon of received messages. By default, a successfully processed message is {link ServiceBusReceiverAsyncClient#complete(ServiceBusReceivedMessage) completed}. If an error happens when the message is processed, it is {link ServiceBusReceiverAsyncClient#abandon(ServiceBusReceivedMessage) abandoned}. The option is a: <code>boolean</code> type. Default: false Group: consumer
        Parameters:
        disableAutoComplete - the value to set
        Returns:
        the dsl builder
      • disableAutoComplete

        default ServiceBusEndpointBuilderFactory.ServiceBusEndpointConsumerBuilder disableAutoComplete​(String disableAutoComplete)
        Disables auto-complete and auto-abandon of received messages. By default, a successfully processed message is {link ServiceBusReceiverAsyncClient#complete(ServiceBusReceivedMessage) completed}. If an error happens when the message is processed, it is {link ServiceBusReceiverAsyncClient#abandon(ServiceBusReceivedMessage) abandoned}. The option will be converted to a <code>boolean</code> type. Default: false Group: consumer
        Parameters:
        disableAutoComplete - the value to set
        Returns:
        the dsl builder
      • maxAutoLockRenewDuration

        default ServiceBusEndpointBuilderFactory.ServiceBusEndpointConsumerBuilder maxAutoLockRenewDuration​(Duration maxAutoLockRenewDuration)
        Sets the amount of time to continue auto-renewing the lock. Setting Duration#ZERO or null disables auto-renewal. For {link ServiceBusReceiveMode#RECEIVE_AND_DELETE RECEIVE_AND_DELETE} mode, auto-renewal is disabled. The option is a: <code>java.time.Duration</code> type. Default: 5min Group: consumer
        Parameters:
        maxAutoLockRenewDuration - the value to set
        Returns:
        the dsl builder
      • maxAutoLockRenewDuration

        default ServiceBusEndpointBuilderFactory.ServiceBusEndpointConsumerBuilder maxAutoLockRenewDuration​(String maxAutoLockRenewDuration)
        Sets the amount of time to continue auto-renewing the lock. Setting Duration#ZERO or null disables auto-renewal. For {link ServiceBusReceiveMode#RECEIVE_AND_DELETE RECEIVE_AND_DELETE} mode, auto-renewal is disabled. The option will be converted to a <code>java.time.Duration</code> type. Default: 5min Group: consumer
        Parameters:
        maxAutoLockRenewDuration - the value to set
        Returns:
        the dsl builder
      • peekNumMaxMessages

        default ServiceBusEndpointBuilderFactory.ServiceBusEndpointConsumerBuilder peekNumMaxMessages​(String peekNumMaxMessages)
        Set the max number of messages to be peeked during the peek operation. The option will be converted to a <code>java.lang.Integer</code> type. Group: consumer
        Parameters:
        peekNumMaxMessages - the value to set
        Returns:
        the dsl builder
      • prefetchCount

        default ServiceBusEndpointBuilderFactory.ServiceBusEndpointConsumerBuilder prefetchCount​(int prefetchCount)
        Sets the prefetch count of the receiver. For both {link ServiceBusReceiveMode#PEEK_LOCK PEEK_LOCK} and {link ServiceBusReceiveMode#RECEIVE_AND_DELETE RECEIVE_AND_DELETE} modes the default value is 1. Prefetch speeds up the message flow by aiming to have a message readily available for local retrieval when and before the application asks for one using ServiceBusReceiverAsyncClient#receiveMessages(). Setting a non-zero value will prefetch that number of messages. Setting the value to zero turns prefetch off. The option is a: <code>int</code> type. Default: 0 Group: consumer
        Parameters:
        prefetchCount - the value to set
        Returns:
        the dsl builder
      • prefetchCount

        default ServiceBusEndpointBuilderFactory.ServiceBusEndpointConsumerBuilder prefetchCount​(String prefetchCount)
        Sets the prefetch count of the receiver. For both {link ServiceBusReceiveMode#PEEK_LOCK PEEK_LOCK} and {link ServiceBusReceiveMode#RECEIVE_AND_DELETE RECEIVE_AND_DELETE} modes the default value is 1. Prefetch speeds up the message flow by aiming to have a message readily available for local retrieval when and before the application asks for one using ServiceBusReceiverAsyncClient#receiveMessages(). Setting a non-zero value will prefetch that number of messages. Setting the value to zero turns prefetch off. The option will be converted to a <code>int</code> type. Default: 0 Group: consumer
        Parameters:
        prefetchCount - the value to set
        Returns:
        the dsl builder
      • receiverAsyncClient

        default ServiceBusEndpointBuilderFactory.ServiceBusEndpointConsumerBuilder receiverAsyncClient​(Object receiverAsyncClient)
        Sets the receiverAsyncClient in order to consume messages in the Consumer. The option is a: <code>com.azure.messaging.servicebus.ServiceBusReceiverAsyncClient</code> type. Group: consumer
        Parameters:
        receiverAsyncClient - the value to set
        Returns:
        the dsl builder
      • receiverAsyncClient

        default ServiceBusEndpointBuilderFactory.ServiceBusEndpointConsumerBuilder receiverAsyncClient​(String receiverAsyncClient)
        Sets the receiverAsyncClient in order to consume messages in the Consumer. The option will be converted to a <code>com.azure.messaging.servicebus.ServiceBusReceiverAsyncClient</code> type. Group: consumer
        Parameters:
        receiverAsyncClient - the value to set
        Returns:
        the dsl builder
      • serviceBusReceiveMode

        default ServiceBusEndpointBuilderFactory.ServiceBusEndpointConsumerBuilder serviceBusReceiveMode​(String serviceBusReceiveMode)
        Sets the receive mode for the receiver. The option will be converted to a <code>com.azure.messaging.servicebus.models.ServiceBusReceiveMode</code> type. Default: PEEK_LOCK Group: consumer
        Parameters:
        serviceBusReceiveMode - the value to set
        Returns:
        the dsl builder
      • subscriptionName

        default ServiceBusEndpointBuilderFactory.ServiceBusEndpointConsumerBuilder subscriptionName​(String subscriptionName)
        Sets the name of the subscription in the topic to listen to. topicOrQueueName and serviceBusType=topic must also be set. The option is a: <code>java.lang.String</code> type. Group: consumer
        Parameters:
        subscriptionName - the value to set
        Returns:
        the dsl builder
      • connectionString

        default ServiceBusEndpointBuilderFactory.ServiceBusEndpointConsumerBuilder connectionString​(String connectionString)
        Sets the connection string for a Service Bus namespace or a specific Service Bus resource. The option is a: <code>java.lang.String</code> type. Required: true Group: security
        Parameters:
        connectionString - the value to set
        Returns:
        the dsl builder