Interface Web3jEndpointBuilderFactory.Web3jEndpointConsumerBuilder
-
- All Superinterfaces:
org.apache.camel.builder.EndpointConsumerBuilder
,org.apache.camel.EndpointConsumerResolver
- All Known Subinterfaces:
Web3jEndpointBuilderFactory.Web3jEndpointBuilder
- Enclosing interface:
- Web3jEndpointBuilderFactory
public static interface Web3jEndpointBuilderFactory.Web3jEndpointConsumerBuilder extends org.apache.camel.builder.EndpointConsumerBuilder
Builder for endpoint consumers for the Web3j Ethereum Blockchain component.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default Web3jEndpointBuilderFactory.Web3jEndpointConsumerBuilder
addresses(String addresses)
Contract address or a list of addresses.default Web3jEndpointBuilderFactory.Web3jEndpointConsumerBuilder
addresses(List<String> addresses)
Contract address or a list of addresses.default Web3jEndpointBuilderFactory.AdvancedWeb3jEndpointConsumerBuilder
advanced()
default Web3jEndpointBuilderFactory.Web3jEndpointConsumerBuilder
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.default Web3jEndpointBuilderFactory.Web3jEndpointConsumerBuilder
bridgeErrorHandler(String 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.default Web3jEndpointBuilderFactory.Web3jEndpointConsumerBuilder
fromAddress(String fromAddress)
The address the transaction is send from.default Web3jEndpointBuilderFactory.Web3jEndpointConsumerBuilder
fromBlock(String fromBlock)
The block number, or the string latest for the last mined block or pending, earliest for not yet mined transactions.default Web3jEndpointBuilderFactory.Web3jEndpointConsumerBuilder
fullTransactionObjects(boolean fullTransactionObjects)
If true it returns the full transaction objects, if false only the hashes of the transactions.default Web3jEndpointBuilderFactory.Web3jEndpointConsumerBuilder
fullTransactionObjects(String fullTransactionObjects)
If true it returns the full transaction objects, if false only the hashes of the transactions.default Web3jEndpointBuilderFactory.Web3jEndpointConsumerBuilder
gasLimit(String gasLimit)
The maximum gas allowed in this block.default Web3jEndpointBuilderFactory.Web3jEndpointConsumerBuilder
gasLimit(BigInteger gasLimit)
The maximum gas allowed in this block.default Web3jEndpointBuilderFactory.Web3jEndpointConsumerBuilder
privateFor(String privateFor)
A transaction privateFor nodes with public keys in a Quorum network.default Web3jEndpointBuilderFactory.Web3jEndpointConsumerBuilder
privateFor(List<String> privateFor)
A transaction privateFor nodes with public keys in a Quorum network.default Web3jEndpointBuilderFactory.Web3jEndpointConsumerBuilder
quorumAPI(boolean quorumAPI)
If true, this will support Quorum API.default Web3jEndpointBuilderFactory.Web3jEndpointConsumerBuilder
quorumAPI(String quorumAPI)
If true, this will support Quorum API.default Web3jEndpointBuilderFactory.Web3jEndpointConsumerBuilder
toAddress(String toAddress)
The address the transaction is directed to.default Web3jEndpointBuilderFactory.Web3jEndpointConsumerBuilder
toBlock(String toBlock)
The block number, or the string latest for the last mined block or pending, earliest for not yet mined transactions.default Web3jEndpointBuilderFactory.Web3jEndpointConsumerBuilder
topics(String topics)
Topics are order-dependent.default Web3jEndpointBuilderFactory.Web3jEndpointConsumerBuilder
topics(List<String> topics)
Topics are order-dependent.default Web3jEndpointBuilderFactory.Web3jEndpointConsumerBuilder
web3j(Object web3j)
The preconfigured Web3j object.default Web3jEndpointBuilderFactory.Web3jEndpointConsumerBuilder
web3j(String web3j)
The preconfigured Web3j object.
-
-
-
Method Detail
-
advanced
default Web3jEndpointBuilderFactory.AdvancedWeb3jEndpointConsumerBuilder advanced()
-
addresses
default Web3jEndpointBuilderFactory.Web3jEndpointConsumerBuilder addresses(List<String> addresses)
Contract address or a list of addresses. The option is a: <code>java.util.List<java.lang.String></code> type. Group: common- Parameters:
addresses
- the value to set- Returns:
- the dsl builder
-
addresses
default Web3jEndpointBuilderFactory.Web3jEndpointConsumerBuilder addresses(String addresses)
Contract address or a list of addresses. The option will be converted to a <code>java.util.List<java.lang.String></code> type. Group: common- Parameters:
addresses
- the value to set- Returns:
- the dsl builder
-
fromAddress
default Web3jEndpointBuilderFactory.Web3jEndpointConsumerBuilder fromAddress(String 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
default Web3jEndpointBuilderFactory.Web3jEndpointConsumerBuilder fromBlock(String 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 Web3jEndpointBuilderFactory.Web3jEndpointConsumerBuilder 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
-
fullTransactionObjects
default Web3jEndpointBuilderFactory.Web3jEndpointConsumerBuilder fullTransactionObjects(String fullTransactionObjects)
If true it returns the full transaction objects, if false only the hashes of the transactions. The option will be converted to a <code>boolean</code> type. Default: false Group: common- Parameters:
fullTransactionObjects
- the value to set- Returns:
- the dsl builder
-
gasLimit
default Web3jEndpointBuilderFactory.Web3jEndpointConsumerBuilder gasLimit(BigInteger 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
-
gasLimit
default Web3jEndpointBuilderFactory.Web3jEndpointConsumerBuilder gasLimit(String gasLimit)
The maximum gas allowed in this block. The option will be converted to a <code>java.math.BigInteger</code> type. Group: common- Parameters:
gasLimit
- the value to set- Returns:
- the dsl builder
-
privateFor
default Web3jEndpointBuilderFactory.Web3jEndpointConsumerBuilder privateFor(List<String> privateFor)
A transaction privateFor nodes with public keys in a Quorum network. The option is a: <code>java.util.List<java.lang.String></code> type. Group: common- Parameters:
privateFor
- the value to set- Returns:
- the dsl builder
-
privateFor
default Web3jEndpointBuilderFactory.Web3jEndpointConsumerBuilder privateFor(String privateFor)
A transaction privateFor nodes with public keys in a Quorum network. The option will be converted to a <code>java.util.List<java.lang.String></code> type. Group: common- Parameters:
privateFor
- the value to set- Returns:
- the dsl builder
-
quorumAPI
default Web3jEndpointBuilderFactory.Web3jEndpointConsumerBuilder 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
-
quorumAPI
default Web3jEndpointBuilderFactory.Web3jEndpointConsumerBuilder quorumAPI(String quorumAPI)
If true, this will support Quorum API. The option will be converted to a <code>boolean</code> type. Default: false Group: common- Parameters:
quorumAPI
- the value to set- Returns:
- the dsl builder
-
toAddress
default Web3jEndpointBuilderFactory.Web3jEndpointConsumerBuilder toAddress(String 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
default Web3jEndpointBuilderFactory.Web3jEndpointConsumerBuilder toBlock(String 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
default Web3jEndpointBuilderFactory.Web3jEndpointConsumerBuilder topics(List<String> 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.util.List<java.lang.String></code> type. Group: common- Parameters:
topics
- the value to set- Returns:
- the dsl builder
-
topics
default Web3jEndpointBuilderFactory.Web3jEndpointConsumerBuilder topics(String topics)
Topics are order-dependent. Each topic can also be a list of topics. Specify multiple topics separated by comma. The option will be converted to a <code>java.util.List<java.lang.String></code> type. Group: common- Parameters:
topics
- the value to set- Returns:
- the dsl builder
-
web3j
default Web3jEndpointBuilderFactory.Web3jEndpointConsumerBuilder web3j(Object 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
-
web3j
default Web3jEndpointBuilderFactory.Web3jEndpointConsumerBuilder web3j(String web3j)
The preconfigured Web3j object. The option will be converted to a <code>org.web3j.protocol.Web3j</code> type. Group: common- Parameters:
web3j
- the value to set- Returns:
- the dsl builder
-
bridgeErrorHandler
default Web3jEndpointBuilderFactory.Web3jEndpointConsumerBuilder 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
-
bridgeErrorHandler
default Web3jEndpointBuilderFactory.Web3jEndpointConsumerBuilder bridgeErrorHandler(String 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 will be converted to a <code>boolean</code> type. Default: false Group: consumer- Parameters:
bridgeErrorHandler
- the value to set- Returns:
- the dsl builder
-
-