Interface ConsulComponentBuilderFactory.ConsulComponentBuilder

    • Method Detail

      • connectTimeoutMillis

        @Deprecated
        default ConsulComponentBuilderFactory.ConsulComponentBuilder connectTimeoutMillis​(Long connectTimeoutMillis)
        Deprecated.
        Connect timeout for OkHttpClient. Deprecation note: Use connectTimeout instead. The option is a: <code>java.lang.Long</code> type. Group: common
        Parameters:
        connectTimeoutMillis - the value to set
        Returns:
        the dsl builder
      • consulClient

        default ConsulComponentBuilderFactory.ConsulComponentBuilder consulClient​(com.orbitz.consul.Consul consulClient)
        Reference to a com.orbitz.consul.Consul in the registry. The option is a: <code>com.orbitz.consul.Consul</code> type. Group: common
        Parameters:
        consulClient - the value to set
        Returns:
        the dsl builder
      • pingInstance

        default ConsulComponentBuilderFactory.ConsulComponentBuilder pingInstance​(boolean pingInstance)
        Configure if the AgentClient should attempt a ping before returning the Consul instance. The option is a: <code>boolean</code> type. Default: true Group: common
        Parameters:
        pingInstance - the value to set
        Returns:
        the dsl builder
      • readTimeoutMillis

        @Deprecated
        default ConsulComponentBuilderFactory.ConsulComponentBuilder readTimeoutMillis​(Long readTimeoutMillis)
        Deprecated.
        Read timeout for OkHttpClient. Deprecation note: Use readTimeout instead. The option is a: <code>java.lang.Long</code> type. Group: common
        Parameters:
        readTimeoutMillis - the value to set
        Returns:
        the dsl builder
      • writeTimeoutMillis

        @Deprecated
        default ConsulComponentBuilderFactory.ConsulComponentBuilder writeTimeoutMillis​(Long writeTimeoutMillis)
        Deprecated.
        Write timeout for OkHttpClient. Deprecation note: Use writeTimeout instead. The option is a: <code>java.lang.Long</code> type. Group: common
        Parameters:
        writeTimeoutMillis - the value to set
        Returns:
        the dsl builder
      • bridgeErrorHandler

        default ConsulComponentBuilderFactory.ConsulComponentBuilder 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
      • lazyStartProducer

        default ConsulComponentBuilderFactory.ConsulComponentBuilder 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: <code>boolean</code> type. Default: false Group: producer
        Parameters:
        lazyStartProducer - the value to set
        Returns:
        the dsl builder
      • valueAsString

        default ConsulComponentBuilderFactory.ConsulComponentBuilder valueAsString​(boolean valueAsString)
        Default to transform values retrieved from Consul i.e. on KV endpoint to string. The option is a: <code>boolean</code> type. Default: false Group: producer
        Parameters:
        valueAsString - the value to set
        Returns:
        the dsl builder
      • autowiredEnabled

        default ConsulComponentBuilderFactory.ConsulComponentBuilder autowiredEnabled​(boolean autowiredEnabled)
        Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc. The option is a: <code>boolean</code> type. Default: true Group: advanced
        Parameters:
        autowiredEnabled - the value to set
        Returns:
        the dsl builder
      • configuration

        default ConsulComponentBuilderFactory.ConsulComponentBuilder configuration​(org.apache.camel.component.consul.ConsulConfiguration configuration)
        Consul configuration. The option is a: <code>org.apache.camel.component.consul.ConsulConfiguration</code> type. Group: advanced
        Parameters:
        configuration - the value to set
        Returns:
        the dsl builder
      • consistencyMode

        default ConsulComponentBuilderFactory.ConsulComponentBuilder consistencyMode​(com.orbitz.consul.option.ConsistencyMode consistencyMode)
        The consistencyMode used for queries, default ConsistencyMode.DEFAULT. The option is a: <code>com.orbitz.consul.option.ConsistencyMode</code> type. Default: DEFAULT Group: advanced
        Parameters:
        consistencyMode - the value to set
        Returns:
        the dsl builder
      • password

        default ConsulComponentBuilderFactory.ConsulComponentBuilder password​(String password)
        Sets the password to be used for basic authentication. The option is a: <code>java.lang.String</code> type. Group: security
        Parameters:
        password - the value to set
        Returns:
        the dsl builder
      • sslContextParameters

        default ConsulComponentBuilderFactory.ConsulComponentBuilder sslContextParameters​(org.apache.camel.support.jsse.SSLContextParameters sslContextParameters)
        SSL configuration using an org.apache.camel.support.jsse.SSLContextParameters instance. The option is a: <code>org.apache.camel.support.jsse.SSLContextParameters</code> type. Group: security
        Parameters:
        sslContextParameters - the value to set
        Returns:
        the dsl builder
      • useGlobalSslContextParameters

        default ConsulComponentBuilderFactory.ConsulComponentBuilder useGlobalSslContextParameters​(boolean useGlobalSslContextParameters)
        Enable usage of global SSL context parameters. The option is a: <code>boolean</code> type. Default: false Group: security
        Parameters:
        useGlobalSslContextParameters - the value to set
        Returns:
        the dsl builder
      • userName

        default ConsulComponentBuilderFactory.ConsulComponentBuilder userName​(String userName)
        Sets the username to be used for basic authentication. The option is a: <code>java.lang.String</code> type. Group: security
        Parameters:
        userName - the value to set
        Returns:
        the dsl builder
      • blockSeconds

        default ConsulComponentBuilderFactory.ConsulComponentBuilder blockSeconds​(Integer blockSeconds)
        The second to wait for a watch event, default 10 seconds. The option is a: <code>java.lang.Integer</code> type. Default: 10 Group: watch
        Parameters:
        blockSeconds - the value to set
        Returns:
        the dsl builder
      • recursive

        default ConsulComponentBuilderFactory.ConsulComponentBuilder recursive​(boolean recursive)
        Recursively watch, default false. The option is a: <code>boolean</code> type. Default: false Group: watch
        Parameters:
        recursive - the value to set
        Returns:
        the dsl builder