Interface CordaComponentBuilderFactory.CordaComponentBuilder

All Superinterfaces:
ComponentBuilder<org.apache.camel.component.corda.CordaComponent>
All Known Implementing Classes:
CordaComponentBuilderFactory.CordaComponentBuilderImpl
Enclosing interface:
CordaComponentBuilderFactory

public static interface CordaComponentBuilderFactory.CordaComponentBuilder extends ComponentBuilder<org.apache.camel.component.corda.CordaComponent>
Builder for the Corda component.
  • Method Details

    • configuration

      default CordaComponentBuilderFactory.CordaComponentBuilder configuration(org.apache.camel.component.corda.CordaConfiguration configuration)
      To use a shared configuration. The option is a: <code>org.apache.camel.component.corda.CordaConfiguration</code> type. Group: common
      Parameters:
      configuration - the value to set
      Returns:
      the dsl builder
    • bridgeErrorHandler

      default CordaComponentBuilderFactory.CordaComponentBuilder 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
      Parameters:
      bridgeErrorHandler - the value to set
      Returns:
      the dsl builder
    • pageSpecification

      default CordaComponentBuilderFactory.CordaComponentBuilder pageSpecification(net.corda.core.node.services.vault.PageSpecification pageSpecification)
      PageSpecification allows specification of a page number (starting from 1) and page size (defaulting to 200 with a maximum page size of (Integer.MAX_INT) Note: we default the page number to 200 to enable queries without requiring a page specification but enabling detection of large results sets that fall out of the 200 requirement. Max page size should be used with extreme caution as results may exceed your JVM memory footprint. The option is a: <code>net.corda.core.node.services.vault.PageSpecification</code> type. Default: 200 Group: consumer
      Parameters:
      pageSpecification - the value to set
      Returns:
      the dsl builder
    • processSnapshot

      default CordaComponentBuilderFactory.CordaComponentBuilder processSnapshot(boolean processSnapshot)
      Whether to process snapshots or not. The option is a: <code>boolean</code> type. Default: true Group: consumer
      Parameters:
      processSnapshot - the value to set
      Returns:
      the dsl builder
    • sort

      default CordaComponentBuilderFactory.CordaComponentBuilder sort(net.corda.core.node.services.vault.Sort sort)
      Sort allows specification of a set of entity attribute names and their associated directionality and null handling, to be applied upon processing a query specification. The option is a: <code>net.corda.core.node.services.vault.Sort</code> type. Group: consumer
      Parameters:
      sort - the value to set
      Returns:
      the dsl builder
    • contractStateClass

      default CordaComponentBuilderFactory.CordaComponentBuilder contractStateClass(Class<net.corda.core.contracts.ContractState> contractStateClass)
      A contract state (or just state) contains opaque data used by a contract program. It can be thought of as a disk file that the program can use to persist data across transactions. States are immutable: once created they are never updated, instead, any changes must generate a new successor state. States can be updated (consumed) only once: the notary is responsible for ensuring there is no double spending by only signing a transaction if the input states are all free. The option is a: <code>java.lang.Class&lt;net.corda.core.contracts.ContractState&gt;</code> type. Group: consumer (advanced)
      Parameters:
      contractStateClass - the value to set
      Returns:
      the dsl builder
    • flowLogicArguments

      default CordaComponentBuilderFactory.CordaComponentBuilder flowLogicArguments(Object[] flowLogicArguments)
      Start the given flow with the given arguments, returning an Observable with a single observation of the result of running the flow. The flowLogicClass must be annotated with net.corda.core.flows.StartableByRPC. The option is a: <code>java.lang.Object[]</code> type. Group: consumer (advanced)
      Parameters:
      flowLogicArguments - the value to set
      Returns:
      the dsl builder
    • flowLogicClass

      default CordaComponentBuilderFactory.CordaComponentBuilder flowLogicClass(Class<net.corda.core.flows.FlowLogic<Object>> flowLogicClass)
      Start the given flow with the given arguments, returning an Observable with a single observation of the result of running the flow. The flowLogicClass must be annotated with net.corda.core.flows.StartableByRPC. The option is a: <code>java.lang.Class&lt;net.corda.core.flows.FlowLogic&lt;java.lang.Object&gt;&gt;</code> type. Group: consumer (advanced)
      Parameters:
      flowLogicClass - the value to set
      Returns:
      the dsl builder
    • queryCriteria

      default CordaComponentBuilderFactory.CordaComponentBuilder queryCriteria(net.corda.core.node.services.vault.QueryCriteria queryCriteria)
      QueryCriteria assumes underlying schema tables are correctly indexed for performance. The option is a: <code>net.corda.core.node.services.vault.QueryCriteria</code> type. Group: consumer (advanced)
      Parameters:
      queryCriteria - the value to set
      Returns:
      the dsl builder
    • lazyStartProducer

      default CordaComponentBuilderFactory.CordaComponentBuilder 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
    • operation

      Operation to use. The option is a: <code>java.lang.String</code> type. Group: producer
      Parameters:
      operation - the value to set
      Returns:
      the dsl builder
    • autowiredEnabled

      default CordaComponentBuilderFactory.CordaComponentBuilder 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
    • password

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

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