Interface CordaEndpointBuilderFactory.AdvancedCordaEndpointConsumerBuilder
- All Superinterfaces:
org.apache.camel.builder.EndpointConsumerBuilder,org.apache.camel.EndpointConsumerResolver
- All Known Subinterfaces:
CordaEndpointBuilderFactory.AdvancedCordaEndpointBuilder
- Enclosing interface:
- CordaEndpointBuilderFactory
public static interface CordaEndpointBuilderFactory.AdvancedCordaEndpointConsumerBuilder
extends org.apache.camel.builder.EndpointConsumerBuilder
Advanced builder for endpoint consumers for the Corda component.
-
Method Summary
Modifier and TypeMethodDescriptionbasic()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.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.contractStateClass(Class<net.corda.core.contracts.ContractState> contractStateClass) A contract state (or just state) contains opaque data used by a contract program.contractStateClass(String contractStateClass) A contract state (or just state) contains opaque data used by a contract program.exceptionHandler(String exceptionHandler) To let the consumer use a custom ExceptionHandler.exceptionHandler(org.apache.camel.spi.ExceptionHandler exceptionHandler) To let the consumer use a custom ExceptionHandler.exchangePattern(String exchangePattern) Sets the exchange pattern when the consumer creates an exchange.exchangePattern(org.apache.camel.ExchangePattern exchangePattern) Sets the exchange pattern when the consumer creates an exchange.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.flowLogicArguments(String flowLogicArguments) Start the given flow with the given arguments, returning an Observable with a single observation of the result of running the flow.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.flowLogicClass(String flowLogicClass) Start the given flow with the given arguments, returning an Observable with a single observation of the result of running the flow.queryCriteria(String queryCriteria) QueryCriteria assumes underlying schema tables are correctly indexed for performance.queryCriteria(net.corda.core.node.services.vault.QueryCriteria queryCriteria) QueryCriteria assumes underlying schema tables are correctly indexed for performance.Methods inherited from interface org.apache.camel.builder.EndpointConsumerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUri, getUriMethods inherited from interface org.apache.camel.EndpointConsumerResolver
resolve, resolve
-
Method Details
-
basic
-
bridgeErrorHandler
default CordaEndpointBuilderFactory.AdvancedCordaEndpointConsumerBuilder 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 (advanced)- Parameters:
bridgeErrorHandler- the value to set- Returns:
- the dsl builder
-
bridgeErrorHandler
default CordaEndpointBuilderFactory.AdvancedCordaEndpointConsumerBuilder 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 (advanced)- Parameters:
bridgeErrorHandler- the value to set- Returns:
- the dsl builder
-
contractStateClass
default CordaEndpointBuilderFactory.AdvancedCordaEndpointConsumerBuilder 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<net.corda.core.contracts.ContractState></code> type. Group: consumer (advanced)- Parameters:
contractStateClass- the value to set- Returns:
- the dsl builder
-
contractStateClass
default CordaEndpointBuilderFactory.AdvancedCordaEndpointConsumerBuilder contractStateClass(String 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 will be converted to a <code>java.lang.Class<net.corda.core.contracts.ContractState></code> type. Group: consumer (advanced)- Parameters:
contractStateClass- the value to set- Returns:
- the dsl builder
-
exceptionHandler
default CordaEndpointBuilderFactory.AdvancedCordaEndpointConsumerBuilder exceptionHandler(org.apache.camel.spi.ExceptionHandler 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. The option is a: <code>org.apache.camel.spi.ExceptionHandler</code> type. Group: consumer (advanced)- Parameters:
exceptionHandler- the value to set- Returns:
- the dsl builder
-
exceptionHandler
default CordaEndpointBuilderFactory.AdvancedCordaEndpointConsumerBuilder exceptionHandler(String 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. The option will be converted to a <code>org.apache.camel.spi.ExceptionHandler</code> type. Group: consumer (advanced)- Parameters:
exceptionHandler- the value to set- Returns:
- the dsl builder
-
exchangePattern
default CordaEndpointBuilderFactory.AdvancedCordaEndpointConsumerBuilder exchangePattern(org.apache.camel.ExchangePattern exchangePattern) Sets the exchange pattern when the consumer creates an exchange. The option is a: <code>org.apache.camel.ExchangePattern</code> type. Group: consumer (advanced)- Parameters:
exchangePattern- the value to set- Returns:
- the dsl builder
-
exchangePattern
default CordaEndpointBuilderFactory.AdvancedCordaEndpointConsumerBuilder exchangePattern(String exchangePattern) Sets the exchange pattern when the consumer creates an exchange. The option will be converted to a <code>org.apache.camel.ExchangePattern</code> type. Group: consumer (advanced)- Parameters:
exchangePattern- the value to set- Returns:
- the dsl builder
-
flowLogicArguments
default CordaEndpointBuilderFactory.AdvancedCordaEndpointConsumerBuilder 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
-
flowLogicArguments
default CordaEndpointBuilderFactory.AdvancedCordaEndpointConsumerBuilder flowLogicArguments(String 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 will be converted to a <code>java.lang.Object[]</code> type. Group: consumer (advanced)- Parameters:
flowLogicArguments- the value to set- Returns:
- the dsl builder
-
flowLogicClass
default CordaEndpointBuilderFactory.AdvancedCordaEndpointConsumerBuilder 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<net.corda.core.flows.FlowLogic<java.lang.Object>></code> type. Group: consumer (advanced)- Parameters:
flowLogicClass- the value to set- Returns:
- the dsl builder
-
flowLogicClass
default CordaEndpointBuilderFactory.AdvancedCordaEndpointConsumerBuilder flowLogicClass(String 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 will be converted to a <code>java.lang.Class<net.corda.core.flows.FlowLogic<java.lang.Object>></code> type. Group: consumer (advanced)- Parameters:
flowLogicClass- the value to set- Returns:
- the dsl builder
-
queryCriteria
default CordaEndpointBuilderFactory.AdvancedCordaEndpointConsumerBuilder 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
-
queryCriteria
default CordaEndpointBuilderFactory.AdvancedCordaEndpointConsumerBuilder queryCriteria(String queryCriteria) QueryCriteria assumes underlying schema tables are correctly indexed for performance. The option will be converted to a <code>net.corda.core.node.services.vault.QueryCriteria</code> type. Group: consumer (advanced)- Parameters:
queryCriteria- the value to set- Returns:
- the dsl builder
-