Interface RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder

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

    public static interface RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder
    extends org.apache.camel.builder.EndpointProducerBuilder
    Advanced builder for endpoint producers for the RabbitMQ component.
    • Method Detail

      • allowMessageBodySerialization

        default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder allowMessageBodySerialization​(boolean allowMessageBodySerialization)
        Whether to allow Java serialization of the message body or not. If this value is true, the message body will be serialized on the producer side using Java serialization, if no type converter can handle the message body. On the consumer side, it will deserialize the message body if this value is true and the message contains a CamelSerialize header. Setting this value to true may introduce a security vulnerability as it allows an attacker to attempt to deserialize to a gadget object which could result in a RCE or other security vulnerability. The option is a: <code>boolean</code> type. Default: false Group: advanced
        Parameters:
        allowMessageBodySerialization - the value to set
        Returns:
        the dsl builder
      • allowMessageBodySerialization

        default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder allowMessageBodySerialization​(String allowMessageBodySerialization)
        Whether to allow Java serialization of the message body or not. If this value is true, the message body will be serialized on the producer side using Java serialization, if no type converter can handle the message body. On the consumer side, it will deserialize the message body if this value is true and the message contains a CamelSerialize header. Setting this value to true may introduce a security vulnerability as it allows an attacker to attempt to deserialize to a gadget object which could result in a RCE or other security vulnerability. The option will be converted to a <code>boolean</code> type. Default: false Group: advanced
        Parameters:
        allowMessageBodySerialization - the value to set
        Returns:
        the dsl builder
      • args

        default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder args​(String key,
                                                                                            Object value)
        Specify arguments for configuring the different RabbitMQ concepts, a different prefix is required for each: Exchange: arg.exchange. Queue: arg.queue. Binding: arg.binding. DLQ: arg.dlq.queue. DLQ binding: arg.dlq.binding. For example to declare a queue with message ttl argument: http://localhost:5672/exchange/queueargs=arg.queue.x-message-ttl=60000. The option is a: <code>java.util.Map&lt;java.lang.String, java.lang.Object&gt;</code> type. The option is multivalued, and you can use the args(String, Object) method to add a value (call the method multiple times to set more values). Group: advanced
        Parameters:
        key - the option key
        value - the option value
        Returns:
        the dsl builder
      • args

        default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder args​(Map values)
        Specify arguments for configuring the different RabbitMQ concepts, a different prefix is required for each: Exchange: arg.exchange. Queue: arg.queue. Binding: arg.binding. DLQ: arg.dlq.queue. DLQ binding: arg.dlq.binding. For example to declare a queue with message ttl argument: http://localhost:5672/exchange/queueargs=arg.queue.x-message-ttl=60000. The option is a: <code>java.util.Map&lt;java.lang.String, java.lang.Object&gt;</code> type. The option is multivalued, and you can use the args(String, Object) method to add a value (call the method multiple times to set more values). Group: advanced
        Parameters:
        values - the values
        Returns:
        the dsl builder
      • clientProperties

        default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder clientProperties​(String clientProperties)
        Connection client properties (client info used in negotiating with the server). The option will be converted to a <code>java.util.Map&lt;java.lang.String, java.lang.Object&gt;</code> type. Group: advanced
        Parameters:
        clientProperties - the value to set
        Returns:
        the dsl builder
      • connectionFactoryExceptionHandler

        default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder connectionFactoryExceptionHandler​(Object connectionFactoryExceptionHandler)
        Custom rabbitmq ExceptionHandler for ConnectionFactory. The option is a: <code>com.rabbitmq.client.ExceptionHandler</code> type. Group: advanced
        Parameters:
        connectionFactoryExceptionHandler - the value to set
        Returns:
        the dsl builder
      • connectionFactoryExceptionHandler

        default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder connectionFactoryExceptionHandler​(String connectionFactoryExceptionHandler)
        Custom rabbitmq ExceptionHandler for ConnectionFactory. The option will be converted to a <code>com.rabbitmq.client.ExceptionHandler</code> type. Group: advanced
        Parameters:
        connectionFactoryExceptionHandler - the value to set
        Returns:
        the dsl builder
      • networkRecoveryInterval

        default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder networkRecoveryInterval​(Integer networkRecoveryInterval)
        Network recovery interval in milliseconds (interval used when recovering from network failure). The option is a: <code>java.lang.Integer</code> type. Default: 5000 Group: advanced
        Parameters:
        networkRecoveryInterval - the value to set
        Returns:
        the dsl builder
      • networkRecoveryInterval

        default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder networkRecoveryInterval​(String networkRecoveryInterval)
        Network recovery interval in milliseconds (interval used when recovering from network failure). The option will be converted to a <code>java.lang.Integer</code> type. Default: 5000 Group: advanced
        Parameters:
        networkRecoveryInterval - the value to set
        Returns:
        the dsl builder
      • requestedChannelMax

        default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder requestedChannelMax​(int requestedChannelMax)
        Connection requested channel max (max number of channels offered). The option is a: <code>int</code> type. Default: 2047 Group: advanced
        Parameters:
        requestedChannelMax - the value to set
        Returns:
        the dsl builder
      • requestedChannelMax

        default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder requestedChannelMax​(String requestedChannelMax)
        Connection requested channel max (max number of channels offered). The option will be converted to a <code>int</code> type. Default: 2047 Group: advanced
        Parameters:
        requestedChannelMax - the value to set
        Returns:
        the dsl builder
      • requestedHeartbeat

        default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder requestedHeartbeat​(int requestedHeartbeat)
        Connection requested heartbeat (heart-beat in seconds offered). The option is a: <code>int</code> type. Default: 60 Group: advanced
        Parameters:
        requestedHeartbeat - the value to set
        Returns:
        the dsl builder
      • requestTimeout

        default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder requestTimeout​(long requestTimeout)
        Set timeout for waiting for a reply when using the InOut Exchange Pattern (in milliseconds). The option is a: <code>long</code> type. Default: 20000 Group: advanced
        Parameters:
        requestTimeout - the value to set
        Returns:
        the dsl builder
      • requestTimeout

        default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder requestTimeout​(String requestTimeout)
        Set timeout for waiting for a reply when using the InOut Exchange Pattern (in milliseconds). The option will be converted to a <code>long</code> type. Default: 20000 Group: advanced
        Parameters:
        requestTimeout - the value to set
        Returns:
        the dsl builder
      • requestTimeoutCheckerInterval

        default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder requestTimeoutCheckerInterval​(long requestTimeoutCheckerInterval)
        Set requestTimeoutCheckerInterval for inOut exchange. The option is a: <code>long</code> type. Default: 1000 Group: advanced
        Parameters:
        requestTimeoutCheckerInterval - the value to set
        Returns:
        the dsl builder
      • requestTimeoutCheckerInterval

        default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder requestTimeoutCheckerInterval​(String requestTimeoutCheckerInterval)
        Set requestTimeoutCheckerInterval for inOut exchange. The option will be converted to a <code>long</code> type. Default: 1000 Group: advanced
        Parameters:
        requestTimeoutCheckerInterval - the value to set
        Returns:
        the dsl builder
      • topologyRecoveryEnabled

        default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder topologyRecoveryEnabled​(Boolean topologyRecoveryEnabled)
        Enables connection topology recovery (should topology recovery be performed). The option is a: <code>java.lang.Boolean</code> type. Group: advanced
        Parameters:
        topologyRecoveryEnabled - the value to set
        Returns:
        the dsl builder
      • topologyRecoveryEnabled

        default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder topologyRecoveryEnabled​(String topologyRecoveryEnabled)
        Enables connection topology recovery (should topology recovery be performed). The option will be converted to a <code>java.lang.Boolean</code> type. Group: advanced
        Parameters:
        topologyRecoveryEnabled - the value to set
        Returns:
        the dsl builder
      • transferException

        default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder transferException​(boolean transferException)
        When true and an inOut Exchange failed on the consumer side send the caused Exception back in the response. The option is a: <code>boolean</code> type. Default: false Group: advanced
        Parameters:
        transferException - the value to set
        Returns:
        the dsl builder
      • transferException

        default RabbitMQEndpointBuilderFactory.AdvancedRabbitMQEndpointProducerBuilder transferException​(String transferException)
        When true and an inOut Exchange failed on the consumer side send the caused Exception back in the response. The option will be converted to a <code>boolean</code> type. Default: false Group: advanced
        Parameters:
        transferException - the value to set
        Returns:
        the dsl builder