Interface Web3jComponentBuilderFactory.Web3jComponentBuilder

All Superinterfaces:
ComponentBuilder<org.apache.camel.component.web3j.Web3jComponent>
All Known Implementing Classes:
Web3jComponentBuilderFactory.Web3jComponentBuilderImpl
Enclosing interface:
Web3jComponentBuilderFactory

public static interface Web3jComponentBuilderFactory.Web3jComponentBuilder extends ComponentBuilder<org.apache.camel.component.web3j.Web3jComponent>
Builder for the Web3j Ethereum Blockchain component.
  • Method Details

    • addresses

      Contract address or a list of addresses. The option is a: <code>java.util.List&lt;java.lang.String&gt;</code> type. Group: common
      Parameters:
      addresses - the value to set
      Returns:
      the dsl builder
    • configuration

      default Web3jComponentBuilderFactory.Web3jComponentBuilder configuration(org.apache.camel.component.web3j.Web3jConfiguration configuration)
      Default configuration. The option is a: <code>org.apache.camel.component.web3j.Web3jConfiguration</code> type. Group: common
      Parameters:
      configuration - the value to set
      Returns:
      the dsl builder
    • fromAddress

      The address the transaction is send from. The option is a: <code>java.lang.String</code> type. Group: common
      Parameters:
      fromAddress - the value to set
      Returns:
      the dsl builder
    • fromBlock

      The block number, or the string latest for the last mined block or pending, earliest for not yet mined transactions. The option is a: <code>java.lang.String</code> type. Default: latest Group: common
      Parameters:
      fromBlock - the value to set
      Returns:
      the dsl builder
    • fullTransactionObjects

      default Web3jComponentBuilderFactory.Web3jComponentBuilder fullTransactionObjects(boolean fullTransactionObjects)
      If true it returns the full transaction objects, if false only the hashes of the transactions. The option is a: <code>boolean</code> type. Default: false Group: common
      Parameters:
      fullTransactionObjects - the value to set
      Returns:
      the dsl builder
    • gasLimit

      The maximum gas allowed in this block. The option is a: <code>java.math.BigInteger</code> type. Group: common
      Parameters:
      gasLimit - the value to set
      Returns:
      the dsl builder
    • privateFor

      A transaction privateFor nodes with public keys in a Quorum network. The option is a: <code>java.util.List&lt;java.lang.String&gt;</code> type. Group: common
      Parameters:
      privateFor - the value to set
      Returns:
      the dsl builder
    • quorumAPI

      default Web3jComponentBuilderFactory.Web3jComponentBuilder quorumAPI(boolean quorumAPI)
      If true, this will support Quorum API. The option is a: <code>boolean</code> type. Default: false Group: common
      Parameters:
      quorumAPI - the value to set
      Returns:
      the dsl builder
    • toAddress

      The address the transaction is directed to. The option is a: <code>java.lang.String</code> type. Group: common
      Parameters:
      toAddress - the value to set
      Returns:
      the dsl builder
    • toBlock

      The block number, or the string latest for the last mined block or pending, earliest for not yet mined transactions. The option is a: <code>java.lang.String</code> type. Default: latest Group: common
      Parameters:
      toBlock - the value to set
      Returns:
      the dsl builder
    • topics

      Topics are order-dependent. Each topic can also be a list of topics. Specify multiple topics separated by comma. The option is a: <code>java.lang.String</code> type. Group: common
      Parameters:
      topics - the value to set
      Returns:
      the dsl builder
    • web3j

      default Web3jComponentBuilderFactory.Web3jComponentBuilder web3j(org.web3j.protocol.Web3j web3j)
      The preconfigured Web3j object. The option is a: <code>org.web3j.protocol.Web3j</code> type. Group: common
      Parameters:
      web3j - the value to set
      Returns:
      the dsl builder
    • bridgeErrorHandler

      default Web3jComponentBuilderFactory.Web3jComponentBuilder 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
    • address

      Contract address. The option is a: <code>java.lang.String</code> type. Group: producer
      Parameters:
      address - the value to set
      Returns:
      the dsl builder
    • atBlock

      The block number, or the string latest for the last mined block or pending, earliest for not yet mined transactions. The option is a: <code>java.lang.String</code> type. Default: latest Group: producer
      Parameters:
      atBlock - the value to set
      Returns:
      the dsl builder
    • blockHash

      Hash of the block where this transaction was in. The option is a: <code>java.lang.String</code> type. Group: producer
      Parameters:
      blockHash - the value to set
      Returns:
      the dsl builder
    • clientId

      A random hexadecimal(32 bytes) ID identifying the client. The option is a: <code>java.lang.String</code> type. Group: producer
      Parameters:
      clientId - the value to set
      Returns:
      the dsl builder
    • data

      The compiled code of a contract OR the hash of the invoked method signature and encoded parameters. The option is a: <code>java.lang.String</code> type. Group: producer
      Parameters:
      data - the value to set
      Returns:
      the dsl builder
    • databaseName

      default Web3jComponentBuilderFactory.Web3jComponentBuilder databaseName(String databaseName)
      The local database name. The option is a: <code>java.lang.String</code> type. Group: producer
      Parameters:
      databaseName - the value to set
      Returns:
      the dsl builder
    • filterId

      The filter id to use. The option is a: <code>java.math.BigInteger</code> type. Group: producer
      Parameters:
      filterId - the value to set
      Returns:
      the dsl builder
    • gasPrice

      Gas price used for each paid gas. The option is a: <code>java.math.BigInteger</code> type. Group: producer
      Parameters:
      gasPrice - the value to set
      Returns:
      the dsl builder
    • hashrate

      A hexadecimal string representation (32 bytes) of the hash rate. The option is a: <code>java.lang.String</code> type. Group: producer
      Parameters:
      hashrate - the value to set
      Returns:
      the dsl builder
    • headerPowHash

      default Web3jComponentBuilderFactory.Web3jComponentBuilder headerPowHash(String headerPowHash)
      The header's pow-hash (256 bits) used for submitting a proof-of-work solution. The option is a: <code>java.lang.String</code> type. Group: producer
      Parameters:
      headerPowHash - the value to set
      Returns:
      the dsl builder
    • index

      The transactions/uncle index position in the block. The option is a: <code>java.math.BigInteger</code> type. Group: producer
      Parameters:
      index - the value to set
      Returns:
      the dsl builder
    • keyName

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

      default Web3jComponentBuilderFactory.Web3jComponentBuilder 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
    • mixDigest

      The mix digest (256 bits) used for submitting a proof-of-work solution. The option is a: <code>java.lang.String</code> type. Group: producer
      Parameters:
      mixDigest - the value to set
      Returns:
      the dsl builder
    • nonce

      The nonce found (64 bits) used for submitting a proof-of-work solution. The option is a: <code>java.lang.String</code> type. Group: producer
      Parameters:
      nonce - the value to set
      Returns:
      the dsl builder
    • operation

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

      The transaction index position withing a block. The option is a: <code>java.math.BigInteger</code> type. Group: producer
      Parameters:
      position - the value to set
      Returns:
      the dsl builder
    • priority

      The priority of a whisper message. The option is a: <code>java.math.BigInteger</code> type. Group: producer
      Parameters:
      priority - the value to set
      Returns:
      the dsl builder
    • sha3HashOfDataToSign

      default Web3jComponentBuilderFactory.Web3jComponentBuilder sha3HashOfDataToSign(String sha3HashOfDataToSign)
      Message to sign by calculating an Ethereum specific signature. The option is a: <code>java.lang.String</code> type. Group: producer
      Parameters:
      sha3HashOfDataToSign - the value to set
      Returns:
      the dsl builder
    • signedTransactionData

      default Web3jComponentBuilderFactory.Web3jComponentBuilder signedTransactionData(String signedTransactionData)
      The signed transaction data for a new message call transaction or a contract creation for signed transactions. The option is a: <code>java.lang.String</code> type. Group: producer
      Parameters:
      signedTransactionData - the value to set
      Returns:
      the dsl builder
    • sourceCode

      The source code to compile. The option is a: <code>java.lang.String</code> type. Group: producer
      Parameters:
      sourceCode - the value to set
      Returns:
      the dsl builder
    • transactionHash

      default Web3jComponentBuilderFactory.Web3jComponentBuilder transactionHash(String transactionHash)
      The information about a transaction requested by transaction hash. The option is a: <code>java.lang.String</code> type. Group: producer
      Parameters:
      transactionHash - the value to set
      Returns:
      the dsl builder
    • ttl

      The time to live in seconds of a whisper message. The option is a: <code>java.math.BigInteger</code> type. Group: producer
      Parameters:
      ttl - the value to set
      Returns:
      the dsl builder
    • value

      The value sent within a transaction. The option is a: <code>java.math.BigInteger</code> type. Group: producer
      Parameters:
      value - the value to set
      Returns:
      the dsl builder
    • autowiredEnabled

      default Web3jComponentBuilderFactory.Web3jComponentBuilder 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