Interface ConsulEndpointBuilderFactory.ConsulEndpointConsumerBuilder
- All Superinterfaces:
org.apache.camel.builder.EndpointConsumerBuilder,org.apache.camel.EndpointConsumerResolver
- All Known Subinterfaces:
ConsulEndpointBuilderFactory.ConsulEndpointBuilder
- Enclosing interface:
- ConsulEndpointBuilderFactory
public static interface ConsulEndpointBuilderFactory.ConsulEndpointConsumerBuilder
extends org.apache.camel.builder.EndpointConsumerBuilder
Builder for endpoint consumers for the Consul component.
-
Method Summary
Modifier and TypeMethodDescriptionSets the ACL token to be used with Consul.advanced()blockSeconds(Integer blockSeconds) The second to wait for a watch event, default 10 seconds.blockSeconds(String blockSeconds) The second to wait for a watch event, default 10 seconds.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.firstIndex(String firstIndex) The first index for watch for, default 0.firstIndex(BigInteger firstIndex) The first index for watch for, default 0.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.recursive(boolean recursive) Recursively watch, default false.Recursively watch, default false.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.writeTimeout(String writeTimeout) Write timeout for OkHttpClient.writeTimeout(Duration writeTimeout) Write timeout for OkHttpClient.Methods inherited from interface org.apache.camel.builder.EndpointConsumerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUri, getUriMethods inherited from interface org.apache.camel.EndpointConsumerResolver
resolve, resolve
-
Method Details
-
advanced
-
connectTimeout
default ConsulEndpointBuilderFactory.ConsulEndpointConsumerBuilder 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.ConsulEndpointConsumerBuilder 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.ConsulEndpointConsumerBuilder 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.ConsulEndpointConsumerBuilder 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.ConsulEndpointConsumerBuilder 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.ConsulEndpointConsumerBuilder 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.ConsulEndpointConsumerBuilder 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.ConsulEndpointConsumerBuilder 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.ConsulEndpointConsumerBuilder 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
-
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.ConsulEndpointConsumerBuilder 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.ConsulEndpointConsumerBuilder 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
-
blockSeconds
default ConsulEndpointBuilderFactory.ConsulEndpointConsumerBuilder 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
-
blockSeconds
default ConsulEndpointBuilderFactory.ConsulEndpointConsumerBuilder blockSeconds(String blockSeconds) The second to wait for a watch event, default 10 seconds. The option will be converted to a <code>java.lang.Integer</code> type. Default: 10 Group: watch- Parameters:
blockSeconds- the value to set- Returns:
- the dsl builder
-
firstIndex
default ConsulEndpointBuilderFactory.ConsulEndpointConsumerBuilder firstIndex(BigInteger firstIndex) The first index for watch for, default 0. The option is a: <code>java.math.BigInteger</code> type. Default: 0 Group: watch- Parameters:
firstIndex- the value to set- Returns:
- the dsl builder
-
firstIndex
The first index for watch for, default 0. The option will be converted to a <code>java.math.BigInteger</code> type. Default: 0 Group: watch- Parameters:
firstIndex- the value to set- Returns:
- the dsl builder
-
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
-
recursive
Recursively watch, default false. The option will be converted to a <code>boolean</code> type. Default: false Group: watch- Parameters:
recursive- the value to set- Returns:
- the dsl builder
-