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.connectTimeout(Duration connectTimeout) Connect timeout.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.readTimeout(Duration readTimeout) Read timeout.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.valueAsString(boolean valueAsString) Default to transform values retrieved from Consul i.e. on KV endpoint to string.valueAsString(String valueAsString) Default to transform values retrieved from Consul i.e. on KV endpoint to string.writeTimeout(String writeTimeout) Write timeout.writeTimeout(Duration writeTimeout) Write timeout.Methods inherited from interface org.apache.camel.builder.EndpointConsumerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUriMethods inherited from interface org.apache.camel.EndpointConsumerResolver
resolve, resolve
-
Method Details
-
advanced
-
connectTimeout
default ConsulEndpointBuilderFactory.ConsulEndpointConsumerBuilder connectTimeout(Duration connectTimeout) Connect timeout. The option is a:java.time.Durationtype. Group: common- Parameters:
connectTimeout- the value to set- Returns:
- the dsl builder
-
connectTimeout
default ConsulEndpointBuilderFactory.ConsulEndpointConsumerBuilder connectTimeout(String connectTimeout) Connect timeout. The option will be converted to ajava.time.Durationtype. Group: common- Parameters:
connectTimeout- the value to set- Returns:
- the dsl builder
-
key
The default key. Can be overridden by CamelConsulKey. The option is a:java.lang.Stringtype. 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:booleantype. 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 abooleantype. Default: true Group: common- Parameters:
pingInstance- the value to set- Returns:
- the dsl builder
-
readTimeout
default ConsulEndpointBuilderFactory.ConsulEndpointConsumerBuilder readTimeout(Duration readTimeout) Read timeout. The option is a:java.time.Durationtype. Group: common- Parameters:
readTimeout- the value to set- Returns:
- the dsl builder
-
readTimeout
Read timeout. The option will be converted to ajava.time.Durationtype. 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:java.lang.Stringtype. Group: common- Parameters:
tags- the value to set- Returns:
- the dsl builder
-
url
The Consul agent URL. The option is a:java.lang.Stringtype. Group: common- Parameters:
url- the value to set- Returns:
- the dsl builder
-
valueAsString
default ConsulEndpointBuilderFactory.ConsulEndpointConsumerBuilder valueAsString(boolean valueAsString) Default to transform values retrieved from Consul i.e. on KV endpoint to string. The option is a:booleantype. Default: false Group: common- Parameters:
valueAsString- the value to set- Returns:
- the dsl builder
-
valueAsString
default ConsulEndpointBuilderFactory.ConsulEndpointConsumerBuilder valueAsString(String valueAsString) Default to transform values retrieved from Consul i.e. on KV endpoint to string. The option will be converted to abooleantype. Default: false Group: common- Parameters:
valueAsString- the value to set- Returns:
- the dsl builder
-
writeTimeout
default ConsulEndpointBuilderFactory.ConsulEndpointConsumerBuilder writeTimeout(Duration writeTimeout) Write timeout. The option is a:java.time.Durationtype. Group: common- Parameters:
writeTimeout- the value to set- Returns:
- the dsl builder
-
writeTimeout
default ConsulEndpointBuilderFactory.ConsulEndpointConsumerBuilder writeTimeout(String writeTimeout) Write timeout. The option will be converted to ajava.time.Durationtype. 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:java.lang.Stringtype. 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:java.lang.Stringtype. 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:org.apache.camel.support.jsse.SSLContextParameterstype. 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 aorg.apache.camel.support.jsse.SSLContextParameterstype. 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:java.lang.Stringtype. 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:java.lang.Integertype. 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 ajava.lang.Integertype. 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:java.math.BigIntegertype. 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 ajava.math.BigIntegertype. Default: 0 Group: watch- Parameters:
firstIndex- the value to set- Returns:
- the dsl builder
-
recursive
Recursively watch, default false. The option is a:booleantype. 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 abooleantype. Default: false Group: watch- Parameters:
recursive- the value to set- Returns:
- the dsl builder
-