Interface Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder
-
- All Superinterfaces:
org.apache.camel.builder.EndpointConsumerBuilder
,org.apache.camel.EndpointConsumerResolver
- All Known Subinterfaces:
Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointBuilder
- Enclosing interface:
- Etcd3EndpointBuilderFactory
public static interface Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder extends org.apache.camel.builder.EndpointConsumerBuilder
Advanced builder for endpoint consumers for the Etcd v3 component.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder
authHeaders(String key, Object value)
Configure the headers to be added to auth request headers.default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder
authHeaders(Map values)
Configure the headers to be added to auth request headers.default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder
authority(String authority)
Configure the authority used to authenticate connections to servers.default Etcd3EndpointBuilderFactory.Etcd3EndpointConsumerBuilder
basic()
default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder
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.default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder
bridgeErrorHandler(String 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.default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder
connectionTimeout(String connectionTimeout)
Configure the connection timeout.default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder
connectionTimeout(Duration connectionTimeout)
Configure the connection timeout.default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder
exceptionHandler(String exceptionHandler)
To let the consumer use a custom ExceptionHandler.default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder
exceptionHandler(org.apache.camel.spi.ExceptionHandler exceptionHandler)
To let the consumer use a custom ExceptionHandler.default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder
exchangePattern(String exchangePattern)
Sets the exchange pattern when the consumer creates an exchange.default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder
exchangePattern(org.apache.camel.ExchangePattern exchangePattern)
Sets the exchange pattern when the consumer creates an exchange.default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder
fromIndex(long fromIndex)
The index to watch from.default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder
fromIndex(String fromIndex)
The index to watch from.default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder
headers(String key, Object value)
Configure the headers to be added to http request headers.default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder
headers(Map values)
Configure the headers to be added to http request headers.default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder
keepAliveTime(String keepAliveTime)
Configure the interval for gRPC keepalives.default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder
keepAliveTime(Duration keepAliveTime)
Configure the interval for gRPC keepalives.default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder
keepAliveTimeout(String keepAliveTimeout)
Configure the timeout for gRPC keepalives.default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder
keepAliveTimeout(Duration keepAliveTimeout)
Configure the timeout for gRPC keepalives.default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder
loadBalancerPolicy(String loadBalancerPolicy)
Configure etcd load balancer policy.default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder
maxInboundMessageSize(Integer maxInboundMessageSize)
Configure the maximum message size allowed for a single gRPC frame.default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder
maxInboundMessageSize(String maxInboundMessageSize)
Configure the maximum message size allowed for a single gRPC frame.default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder
retryDelay(long retryDelay)
Configure the delay between retries in milliseconds.default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder
retryDelay(String retryDelay)
Configure the delay between retries in milliseconds.default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder
retryMaxDelay(long retryMaxDelay)
Configure the max backing off delay between retries in milliseconds.default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder
retryMaxDelay(String retryMaxDelay)
Configure the max backing off delay between retries in milliseconds.default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder
retryMaxDuration(String retryMaxDuration)
Configure the retries max duration.default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder
retryMaxDuration(Duration retryMaxDuration)
Configure the retries max duration.default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder
sslContext(io.netty.handler.ssl.SslContext sslContext)
Configure SSL/TLS context to use instead of the system default.default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder
sslContext(String sslContext)
Configure SSL/TLS context to use instead of the system default.
-
-
-
Method Detail
-
basic
default Etcd3EndpointBuilderFactory.Etcd3EndpointConsumerBuilder basic()
-
bridgeErrorHandler
default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder 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 (advanced)- Parameters:
bridgeErrorHandler
- the value to set- Returns:
- the dsl builder
-
bridgeErrorHandler
default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder bridgeErrorHandler(String 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 will be converted to a <code>boolean</code> type. Default: false Group: consumer (advanced)- Parameters:
bridgeErrorHandler
- the value to set- Returns:
- the dsl builder
-
exceptionHandler
default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder exceptionHandler(org.apache.camel.spi.ExceptionHandler exceptionHandler)
To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By default the consumer will deal with exceptions, that will be logged at WARN or ERROR level and ignored. The option is a: <code>org.apache.camel.spi.ExceptionHandler</code> type. Group: consumer (advanced)- Parameters:
exceptionHandler
- the value to set- Returns:
- the dsl builder
-
exceptionHandler
default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder exceptionHandler(String exceptionHandler)
To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By default the consumer will deal with exceptions, that will be logged at WARN or ERROR level and ignored. The option will be converted to a <code>org.apache.camel.spi.ExceptionHandler</code> type. Group: consumer (advanced)- Parameters:
exceptionHandler
- the value to set- Returns:
- the dsl builder
-
exchangePattern
default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder exchangePattern(org.apache.camel.ExchangePattern exchangePattern)
Sets the exchange pattern when the consumer creates an exchange. The option is a: <code>org.apache.camel.ExchangePattern</code> type. Group: consumer (advanced)- Parameters:
exchangePattern
- the value to set- Returns:
- the dsl builder
-
exchangePattern
default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder exchangePattern(String exchangePattern)
Sets the exchange pattern when the consumer creates an exchange. The option will be converted to a <code>org.apache.camel.ExchangePattern</code> type. Group: consumer (advanced)- Parameters:
exchangePattern
- the value to set- Returns:
- the dsl builder
-
fromIndex
default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder fromIndex(long fromIndex)
The index to watch from. The option is a: <code>long</code> type. Default: 0 Group: consumer (advanced)- Parameters:
fromIndex
- the value to set- Returns:
- the dsl builder
-
fromIndex
default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder fromIndex(String fromIndex)
The index to watch from. The option will be converted to a <code>long</code> type. Default: 0 Group: consumer (advanced)- Parameters:
fromIndex
- the value to set- Returns:
- the dsl builder
-
authHeaders
default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder authHeaders(String key, Object value)
Configure the headers to be added to auth request headers. The option is a: <code>java.util.Map<java.lang.String, java.lang.String></code> type. The option is multivalued, and you can use the authHeaders(String, Object) method to add a value (call the method multiple times to set more values). Group: advanced- Parameters:
key
- the option keyvalue
- the option value- Returns:
- the dsl builder
-
authHeaders
default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder authHeaders(Map values)
Configure the headers to be added to auth request headers. The option is a: <code>java.util.Map<java.lang.String, java.lang.String></code> type. The option is multivalued, and you can use the authHeaders(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
-
authority
default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder authority(String authority)
Configure the authority used to authenticate connections to servers. The option is a: <code>java.lang.String</code> type. Group: advanced- Parameters:
authority
- the value to set- Returns:
- the dsl builder
-
connectionTimeout
default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder connectionTimeout(Duration connectionTimeout)
Configure the connection timeout. The option is a: <code>java.time.Duration</code> type. Group: advanced- Parameters:
connectionTimeout
- the value to set- Returns:
- the dsl builder
-
connectionTimeout
default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder connectionTimeout(String connectionTimeout)
Configure the connection timeout. The option will be converted to a <code>java.time.Duration</code> type. Group: advanced- Parameters:
connectionTimeout
- the value to set- Returns:
- the dsl builder
-
headers
default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder headers(String key, Object value)
Configure the headers to be added to http request headers. The option is a: <code>java.util.Map<java.lang.String, java.lang.String></code> type. The option is multivalued, and you can use the headers(String, Object) method to add a value (call the method multiple times to set more values). Group: advanced- Parameters:
key
- the option keyvalue
- the option value- Returns:
- the dsl builder
-
headers
default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder headers(Map values)
Configure the headers to be added to http request headers. The option is a: <code>java.util.Map<java.lang.String, java.lang.String></code> type. The option is multivalued, and you can use the headers(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
-
keepAliveTime
default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder keepAliveTime(Duration keepAliveTime)
Configure the interval for gRPC keepalives. The current minimum allowed by gRPC is 10 seconds. The option is a: <code>java.time.Duration</code> type. Default: 30 seconds Group: advanced- Parameters:
keepAliveTime
- the value to set- Returns:
- the dsl builder
-
keepAliveTime
default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder keepAliveTime(String keepAliveTime)
Configure the interval for gRPC keepalives. The current minimum allowed by gRPC is 10 seconds. The option will be converted to a <code>java.time.Duration</code> type. Default: 30 seconds Group: advanced- Parameters:
keepAliveTime
- the value to set- Returns:
- the dsl builder
-
keepAliveTimeout
default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder keepAliveTimeout(Duration keepAliveTimeout)
Configure the timeout for gRPC keepalives. The option is a: <code>java.time.Duration</code> type. Default: 10 seconds Group: advanced- Parameters:
keepAliveTimeout
- the value to set- Returns:
- the dsl builder
-
keepAliveTimeout
default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder keepAliveTimeout(String keepAliveTimeout)
Configure the timeout for gRPC keepalives. The option will be converted to a <code>java.time.Duration</code> type. Default: 10 seconds Group: advanced- Parameters:
keepAliveTimeout
- the value to set- Returns:
- the dsl builder
-
loadBalancerPolicy
default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder loadBalancerPolicy(String loadBalancerPolicy)
Configure etcd load balancer policy. The option is a: <code>java.lang.String</code> type. Group: advanced- Parameters:
loadBalancerPolicy
- the value to set- Returns:
- the dsl builder
-
maxInboundMessageSize
default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder maxInboundMessageSize(Integer maxInboundMessageSize)
Configure the maximum message size allowed for a single gRPC frame. The option is a: <code>java.lang.Integer</code> type. Group: advanced- Parameters:
maxInboundMessageSize
- the value to set- Returns:
- the dsl builder
-
maxInboundMessageSize
default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder maxInboundMessageSize(String maxInboundMessageSize)
Configure the maximum message size allowed for a single gRPC frame. The option will be converted to a <code>java.lang.Integer</code> type. Group: advanced- Parameters:
maxInboundMessageSize
- the value to set- Returns:
- the dsl builder
-
retryDelay
default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder retryDelay(long retryDelay)
Configure the delay between retries in milliseconds. The option is a: <code>long</code> type. Default: 500 Group: advanced- Parameters:
retryDelay
- the value to set- Returns:
- the dsl builder
-
retryDelay
default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder retryDelay(String retryDelay)
Configure the delay between retries in milliseconds. The option will be converted to a <code>long</code> type. Default: 500 Group: advanced- Parameters:
retryDelay
- the value to set- Returns:
- the dsl builder
-
retryMaxDelay
default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder retryMaxDelay(long retryMaxDelay)
Configure the max backing off delay between retries in milliseconds. The option is a: <code>long</code> type. Default: 2500 Group: advanced- Parameters:
retryMaxDelay
- the value to set- Returns:
- the dsl builder
-
retryMaxDelay
default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder retryMaxDelay(String retryMaxDelay)
Configure the max backing off delay between retries in milliseconds. The option will be converted to a <code>long</code> type. Default: 2500 Group: advanced- Parameters:
retryMaxDelay
- the value to set- Returns:
- the dsl builder
-
retryMaxDuration
default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder retryMaxDuration(Duration retryMaxDuration)
Configure the retries max duration. The option is a: <code>java.time.Duration</code> type. Group: advanced- Parameters:
retryMaxDuration
- the value to set- Returns:
- the dsl builder
-
retryMaxDuration
default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder retryMaxDuration(String retryMaxDuration)
Configure the retries max duration. The option will be converted to a <code>java.time.Duration</code> type. Group: advanced- Parameters:
retryMaxDuration
- the value to set- Returns:
- the dsl builder
-
sslContext
default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder sslContext(io.netty.handler.ssl.SslContext sslContext)
Configure SSL/TLS context to use instead of the system default. The option is a: <code>io.netty.handler.ssl.SslContext</code> type. Group: security- Parameters:
sslContext
- the value to set- Returns:
- the dsl builder
-
sslContext
default Etcd3EndpointBuilderFactory.AdvancedEtcd3EndpointConsumerBuilder sslContext(String sslContext)
Configure SSL/TLS context to use instead of the system default. The option will be converted to a <code>io.netty.handler.ssl.SslContext</code> type. Group: security- Parameters:
sslContext
- the value to set- Returns:
- the dsl builder
-
-