Interface Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder

All Superinterfaces:
ComponentBuilder<org.apache.camel.component.etcd3.Etcd3Component>
All Known Implementing Classes:
Etcd3ComponentBuilderFactory.Etcd3ComponentBuilderImpl
Enclosing interface:
Etcd3ComponentBuilderFactory

public static interface Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder extends ComponentBuilder<org.apache.camel.component.etcd3.Etcd3Component>
Builder for the Etcd v3 component.
  • Method Details

    • configuration

      default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder configuration(org.apache.camel.component.etcd3.Etcd3Configuration configuration)
      Component configuration. The option is a: <code>org.apache.camel.component.etcd3.Etcd3Configuration</code> type. Group: common
      Parameters:
      configuration - the value to set
      Returns:
      the dsl builder
    • endpoints

      Configure etcd server endpoints using the IPNameResolver. Multiple endpoints can be separated by comma. The option is a: <code>java.lang.String</code> type. Default: http://localhost:2379 Group: common
      Parameters:
      endpoints - the value to set
      Returns:
      the dsl builder
    • keyCharset

      Configure the charset to use for the keys. The option is a: <code>java.lang.String</code> type. Default: UTF-8 Group: common
      Parameters:
      keyCharset - the value to set
      Returns:
      the dsl builder
    • namespace

      Configure the namespace of keys used. / will be treated as no namespace. The option is a: <code>java.lang.String</code> type. Group: common
      Parameters:
      namespace - the value to set
      Returns:
      the dsl builder
    • prefix

      default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder prefix(boolean prefix)
      To apply an action on all the key-value pairs whose key that starts with the target path. The option is a: <code>boolean</code> type. Default: false Group: common
      Parameters:
      prefix - the value to set
      Returns:
      the dsl builder
    • bridgeErrorHandler

      default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder bridgeErrorHandler(boolean bridgeErrorHandler)
      Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions (if possible) occurred while the Camel consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. Important: This is only possible if the 3rd party component allows Camel to be alerted if an exception was thrown. Some components handle this internally only, and therefore bridgeErrorHandler is not possible. In other situations we may improve the Camel component to hook into the 3rd party component and make this possible for future releases. 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
    • fromIndex

      default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder fromIndex(long fromIndex)
      The index to watch from. The option is a: <code>long</code> type. Group: consumer (advanced)
      Parameters:
      fromIndex - the value to set
      Returns:
      the dsl builder
    • lazyStartProducer

      default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder 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
    • valueCharset

      default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder valueCharset(String valueCharset)
      Configure the charset to use for the values. The option is a: <code>java.lang.String</code> type. Default: UTF-8 Group: producer
      Parameters:
      valueCharset - the value to set
      Returns:
      the dsl builder
    • authHeaders

      Configure the headers to be added to auth request headers. The option is a: <code>java.util.Map&lt;java.lang.String, java.lang.String&gt;</code> type. Group: advanced
      Parameters:
      authHeaders - the value to set
      Returns:
      the dsl builder
    • 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
    • autowiredEnabled

      default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder 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
    • connectionTimeout

      default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder 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
    • headers

      Configure the headers to be added to http request headers. The option is a: <code>java.util.Map&lt;java.lang.String, java.lang.String&gt;</code> type. Group: advanced
      Parameters:
      headers - the value to set
      Returns:
      the dsl builder
    • keepAliveTime

      default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder 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
    • keepAliveTimeout

      default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder 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
    • loadBalancerPolicy

      default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder 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 Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder 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
    • retryDelay

      default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder 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
    • retryMaxDelay

      default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder 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
    • retryMaxDuration

      default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder 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
    • servicePath

      The path to look for service discovery. The option is a: <code>java.lang.String</code> type. Default: /services/ Group: cloud
      Parameters:
      servicePath - the value to set
      Returns:
      the dsl builder
    • password

      Configure etcd auth password. The option is a: <code>java.lang.String</code> type. Group: security
      Parameters:
      password - the value to set
      Returns:
      the dsl builder
    • sslContext

      default Etcd3ComponentBuilderFactory.Etcd3ComponentBuilder 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
    • userName

      Configure etcd auth user. The option is a: <code>java.lang.String</code> type. Group: security
      Parameters:
      userName - the value to set
      Returns:
      the dsl builder