Interface SolrComponentBuilderFactory.SolrComponentBuilder

All Superinterfaces:
ComponentBuilder<org.apache.camel.component.solr.SolrComponent>
All Known Implementing Classes:
SolrComponentBuilderFactory.SolrComponentBuilderImpl
Enclosing interface:
SolrComponentBuilderFactory

public static interface SolrComponentBuilderFactory.SolrComponentBuilder extends ComponentBuilder<org.apache.camel.component.solr.SolrComponent>
Builder for the Solr component.
  • Method Details

    • connectionTimeout

      default SolrComponentBuilderFactory.SolrComponentBuilder connectionTimeout(long connectionTimeout)
      The time in ms to wait before connection will time out. The option is a: <code>long</code> type. Default: 60000 Group: producer
      Parameters:
      connectionTimeout - the value to set
      Returns:
      the dsl builder
    • defaultCollection

      default SolrComponentBuilderFactory.SolrComponentBuilder defaultCollection(String defaultCollection)
      Solr default collection name. The option is a: <code>java.lang.String</code> type. Group: producer
      Parameters:
      defaultCollection - the value to set
      Returns:
      the dsl builder
    • host

      The solr instance host name. The option is a: <code>java.lang.String</code> type. Group: producer
      Parameters:
      host - the value to set
      Returns:
      the dsl builder
    • lazyStartProducer

      default SolrComponentBuilderFactory.SolrComponentBuilder 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
    • port

      The solr instance port number. The option is a: <code>int</code> type. Group: producer
      Parameters:
      port - the value to set
      Returns:
      the dsl builder
    • requestTimeout

      default SolrComponentBuilderFactory.SolrComponentBuilder requestTimeout(long requestTimeout)
      The timeout in ms to wait before the socket will time out. The option is a: <code>long</code> type. Default: 600000 Group: producer
      Parameters:
      requestTimeout - the value to set
      Returns:
      the dsl builder
    • autowiredEnabled

      default SolrComponentBuilderFactory.SolrComponentBuilder 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
    • solrClient

      default SolrComponentBuilderFactory.SolrComponentBuilder solrClient(org.apache.solr.client.solrj.SolrClient solrClient)
      To use an existing configured solr client, instead of creating a client per endpoint. This allows customizing the client with specific advanced settings. The option is a: <code>org.apache.solr.client.solrj.SolrClient</code> type. Group: advanced
      Parameters:
      solrClient - the value to set
      Returns:
      the dsl builder
    • enableSSL

      default SolrComponentBuilderFactory.SolrComponentBuilder enableSSL(boolean enableSSL)
      Enable SSL. The option is a: <code>boolean</code> type. Default: false Group: security
      Parameters:
      enableSSL - the value to set
      Returns:
      the dsl builder
    • password

      Password for authenticating. The option is a: <code>java.lang.String</code> type. Group: security
      Parameters:
      password - the value to set
      Returns:
      the dsl builder
    • username

      Basic authenticate user. The option is a: <code>java.lang.String</code> type. Group: security
      Parameters:
      username - the value to set
      Returns:
      the dsl builder