camel-web3j-kafka-connector source configuration
When using camel-web3j-kafka-connector as source make sure to use the following Maven dependency to have support for the connector:
<dependency>
<groupId>org.apache.camel.kafkaconnector</groupId>
<artifactId>camel-web3j-kafka-connector</artifactId>
<version>x.x.x</version>
<!-- use the same version as your Camel Kafka connector version -->
</dependency>
To use this Source connector in Kafka connect you’ll need to set the following connector.class
connector.class=org.apache.camel.kafkaconnector.web3j.CamelWeb3jSourceConnector
The camel-web3j source connector supports 31 options, which are listed below.
Name | Description | Default | Priority |
---|---|---|---|
camel.source.path.nodeAddress |
Sets the node address used to communicate |
null |
HIGH |
camel.source.endpoint.addresses |
Contract address or a list of addresses. |
null |
MEDIUM |
camel.source.endpoint.fromAddress |
The address the transaction is send from |
null |
MEDIUM |
camel.source.endpoint.fromBlock |
The block number, or the string latest for the last mined block or pending, earliest for not yet mined transactions. |
"latest" |
MEDIUM |
camel.source.endpoint.fullTransactionObjects |
If true it returns the full transaction objects, if false only the hashes of the transactions. |
false |
MEDIUM |
camel.source.endpoint.gasLimit |
The maximum gas allowed in this block. |
null |
MEDIUM |
camel.source.endpoint.privateFor |
A transaction privateFor nodes with public keys in a Quorum network |
null |
MEDIUM |
camel.source.endpoint.quorumAPI |
If true, this will support Quorum API. |
false |
MEDIUM |
camel.source.endpoint.toAddress |
The address the transaction is directed to. |
null |
MEDIUM |
camel.source.endpoint.toBlock |
The block number, or the string latest for the last mined block or pending, earliest for not yet mined transactions. |
"latest" |
MEDIUM |
camel.source.endpoint.topics |
Topics are order-dependent. Each topic can also be a list of topics. Specify multiple topics separated by comma. |
null |
MEDIUM |
camel.source.endpoint.web3j |
The preconfigured Web3j object. |
null |
MEDIUM |
camel.source.endpoint.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. |
false |
MEDIUM |
camel.source.endpoint.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. |
null |
MEDIUM |
camel.source.endpoint.exchangePattern |
Sets the exchange pattern when the consumer creates an exchange. One of: [InOnly] [InOut] [InOptionalOut] |
null |
MEDIUM |
camel.source.endpoint.basicPropertyBinding |
Whether the endpoint should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities |
false |
MEDIUM |
camel.source.endpoint.synchronous |
Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). |
false |
MEDIUM |
camel.component.web3j.addresses |
Contract address or a list of addresses. |
null |
MEDIUM |
camel.component.web3j.configuration |
Default configuration |
null |
MEDIUM |
camel.component.web3j.fromAddress |
The address the transaction is send from |
null |
MEDIUM |
camel.component.web3j.fromBlock |
The block number, or the string latest for the last mined block or pending, earliest for not yet mined transactions. |
"latest" |
MEDIUM |
camel.component.web3j.fullTransactionObjects |
If true it returns the full transaction objects, if false only the hashes of the transactions. |
false |
MEDIUM |
camel.component.web3j.gasLimit |
The maximum gas allowed in this block. |
null |
MEDIUM |
camel.component.web3j.privateFor |
A transaction privateFor nodes with public keys in a Quorum network |
null |
MEDIUM |
camel.component.web3j.quorumAPI |
If true, this will support Quorum API. |
false |
MEDIUM |
camel.component.web3j.toAddress |
The address the transaction is directed to. |
null |
MEDIUM |
camel.component.web3j.toBlock |
The block number, or the string latest for the last mined block or pending, earliest for not yet mined transactions. |
"latest" |
MEDIUM |
camel.component.web3j.topics |
Topics are order-dependent. Each topic can also be a list of topics. Specify multiple topics separated by comma. |
null |
MEDIUM |
camel.component.web3j.web3j |
The preconfigured Web3j object. |
null |
MEDIUM |
camel.component.web3j.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. |
false |
MEDIUM |
camel.component.web3j.basicPropertyBinding |
Whether the component should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities |
false |
MEDIUM |