Interface ConsulEndpointBuilderFactory.ConsulEndpointProducerBuilder
- All Superinterfaces:
org.apache.camel.builder.EndpointProducerBuilder
,org.apache.camel.EndpointProducerResolver
- All Known Subinterfaces:
ConsulEndpointBuilderFactory.ConsulEndpointBuilder
- Enclosing interface:
- ConsulEndpointBuilderFactory
public static interface ConsulEndpointBuilderFactory.ConsulEndpointProducerBuilder
extends org.apache.camel.builder.EndpointProducerBuilder
Builder for endpoint producers for the Consul component.
-
Method Summary
Modifier and TypeMethodDescriptionSets the ACL token to be used with Consul.The default action.advanced()
connectTimeout
(String connectTimeout) Connect timeout for OkHttpClient.connectTimeout
(Duration connectTimeout) Connect timeout for OkHttpClient.consulClient
(com.orbitz.consul.Consul consulClient) Reference to a com.orbitz.consul.Consul in the registry.consulClient
(String consulClient) Reference to a com.orbitz.consul.Consul in the registry.The default key.Sets the password to be used for basic authentication.pingInstance
(boolean pingInstance) Configure if the AgentClient should attempt a ping before returning the Consul instance.pingInstance
(String pingInstance) Configure if the AgentClient should attempt a ping before returning the Consul instance.readTimeout
(String readTimeout) Read timeout for OkHttpClient.readTimeout
(Duration readTimeout) Read timeout for OkHttpClient.sslContextParameters
(String sslContextParameters) SSL configuration using an org.apache.camel.support.jsse.SSLContextParameters instance.sslContextParameters
(org.apache.camel.support.jsse.SSLContextParameters sslContextParameters) SSL configuration using an org.apache.camel.support.jsse.SSLContextParameters instance.Set tags.The Consul agent URL.Sets the username to be used for basic authentication.valueAsString
(boolean valueAsString) Default to transform values retrieved from Consul i.e.valueAsString
(String valueAsString) Default to transform values retrieved from Consul i.e.writeTimeout
(String writeTimeout) Write timeout for OkHttpClient.writeTimeout
(Duration writeTimeout) Write timeout for OkHttpClient.Methods inherited from interface org.apache.camel.builder.EndpointProducerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUri, getUri
Methods inherited from interface org.apache.camel.EndpointProducerResolver
resolve, resolve
-
Method Details
-
advanced
-
connectTimeout
default ConsulEndpointBuilderFactory.ConsulEndpointProducerBuilder connectTimeout(Duration connectTimeout) Connect timeout for OkHttpClient. The option is a: <code>java.time.Duration</code> type. Group: common- Parameters:
connectTimeout
- the value to set- Returns:
- the dsl builder
-
connectTimeout
default ConsulEndpointBuilderFactory.ConsulEndpointProducerBuilder connectTimeout(String connectTimeout) Connect timeout for OkHttpClient. The option will be converted to a <code>java.time.Duration</code> type. Group: common- Parameters:
connectTimeout
- the value to set- Returns:
- the dsl builder
-
consulClient
default ConsulEndpointBuilderFactory.ConsulEndpointProducerBuilder 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
-
consulClient
default ConsulEndpointBuilderFactory.ConsulEndpointProducerBuilder consulClient(String consulClient) Reference to a com.orbitz.consul.Consul in the registry. The option will be converted to a <code>com.orbitz.consul.Consul</code> type. Group: common- Parameters:
consulClient
- the value to set- Returns:
- the dsl builder
-
key
The default key. Can be overridden by CamelConsulKey. The option is a: <code>java.lang.String</code> type. Group: common- Parameters:
key
- the value to set- Returns:
- the dsl builder
-
pingInstance
default ConsulEndpointBuilderFactory.ConsulEndpointProducerBuilder 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
-
pingInstance
default ConsulEndpointBuilderFactory.ConsulEndpointProducerBuilder pingInstance(String pingInstance) Configure if the AgentClient should attempt a ping before returning the Consul instance. The option will be converted to a <code>boolean</code> type. Default: true Group: common- Parameters:
pingInstance
- the value to set- Returns:
- the dsl builder
-
readTimeout
default ConsulEndpointBuilderFactory.ConsulEndpointProducerBuilder readTimeout(Duration readTimeout) Read timeout for OkHttpClient. The option is a: <code>java.time.Duration</code> type. Group: common- Parameters:
readTimeout
- the value to set- Returns:
- the dsl builder
-
readTimeout
Read timeout for OkHttpClient. The option will be converted to a <code>java.time.Duration</code> type. Group: common- Parameters:
readTimeout
- the value to set- Returns:
- the dsl builder
-
tags
Set tags. You can separate multiple tags by comma. The option is a: <code>java.lang.String</code> type. Group: common- Parameters:
tags
- the value to set- Returns:
- the dsl builder
-
url
The Consul agent URL. The option is a: <code>java.lang.String</code> type. Group: common- Parameters:
url
- the value to set- Returns:
- the dsl builder
-
writeTimeout
default ConsulEndpointBuilderFactory.ConsulEndpointProducerBuilder writeTimeout(Duration writeTimeout) Write timeout for OkHttpClient. The option is a: <code>java.time.Duration</code> type. Group: common- Parameters:
writeTimeout
- the value to set- Returns:
- the dsl builder
-
writeTimeout
default ConsulEndpointBuilderFactory.ConsulEndpointProducerBuilder writeTimeout(String writeTimeout) Write timeout for OkHttpClient. The option will be converted to a <code>java.time.Duration</code> type. Group: common- Parameters:
writeTimeout
- the value to set- Returns:
- the dsl builder
-
action
The default action. Can be overridden by CamelConsulAction. The option is a: <code>java.lang.String</code> type. Group: producer- Parameters:
action
- the value to set- Returns:
- the dsl builder
-
valueAsString
default ConsulEndpointBuilderFactory.ConsulEndpointProducerBuilder 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
-
valueAsString
default ConsulEndpointBuilderFactory.ConsulEndpointProducerBuilder valueAsString(String valueAsString) Default to transform values retrieved from Consul i.e. on KV endpoint to string. The option will be converted to a <code>boolean</code> type. Default: false Group: producer- Parameters:
valueAsString
- the value to set- Returns:
- the dsl builder
-
aclToken
Sets the ACL token to be used with Consul. The option is a: <code>java.lang.String</code> type. Group: security- Parameters:
aclToken
- the value to set- Returns:
- the dsl builder
-
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 ConsulEndpointBuilderFactory.ConsulEndpointProducerBuilder 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
-
sslContextParameters
default ConsulEndpointBuilderFactory.ConsulEndpointProducerBuilder sslContextParameters(String sslContextParameters) SSL configuration using an org.apache.camel.support.jsse.SSLContextParameters instance. The option will be converted to a <code>org.apache.camel.support.jsse.SSLContextParameters</code> type. Group: security- Parameters:
sslContextParameters
- the value to set- Returns:
- the dsl builder
-
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
-