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.EndpointConsumerBuilderAdvanced builder for endpoint consumers for the Corda component.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default CordaEndpointBuilderFactory.CordaEndpointConsumerBuilderbasic()default CordaEndpointBuilderFactory.AdvancedCordaEndpointConsumerBuildercontractStateClass(Class<Object> contractStateClass)A contract state (or just state) contains opaque data used by a contract program.default CordaEndpointBuilderFactory.AdvancedCordaEndpointConsumerBuildercontractStateClass(String contractStateClass)A contract state (or just state) contains opaque data used by a contract program.default CordaEndpointBuilderFactory.AdvancedCordaEndpointConsumerBuilderexceptionHandler(String exceptionHandler)To let the consumer use a custom ExceptionHandler.default CordaEndpointBuilderFactory.AdvancedCordaEndpointConsumerBuilderexceptionHandler(org.apache.camel.spi.ExceptionHandler exceptionHandler)To let the consumer use a custom ExceptionHandler.default CordaEndpointBuilderFactory.AdvancedCordaEndpointConsumerBuilderexchangePattern(String exchangePattern)Sets the exchange pattern when the consumer creates an exchange.default CordaEndpointBuilderFactory.AdvancedCordaEndpointConsumerBuilderexchangePattern(org.apache.camel.ExchangePattern exchangePattern)Sets the exchange pattern when the consumer creates an exchange.default CordaEndpointBuilderFactory.AdvancedCordaEndpointConsumerBuilderflowLogicArguments(Object[] flowLogicArguments)Start the given flow with the given arguments, returning an Observable with a single observation of the result of running the flow.default CordaEndpointBuilderFactory.AdvancedCordaEndpointConsumerBuilderflowLogicArguments(String flowLogicArguments)Start the given flow with the given arguments, returning an Observable with a single observation of the result of running the flow.default CordaEndpointBuilderFactory.AdvancedCordaEndpointConsumerBuilderflowLogicClass(Class<Object> flowLogicClass)Start the given flow with the given arguments, returning an Observable with a single observation of the result of running the flow.default CordaEndpointBuilderFactory.AdvancedCordaEndpointConsumerBuilderflowLogicClass(String flowLogicClass)Start the given flow with the given arguments, returning an Observable with a single observation of the result of running the flow.default CordaEndpointBuilderFactory.AdvancedCordaEndpointConsumerBuilderqueryCriteria(Object queryCriteria)QueryCriteria assumes underlying schema tables are correctly indexed for performance.default CordaEndpointBuilderFactory.AdvancedCordaEndpointConsumerBuilderqueryCriteria(String queryCriteria)QueryCriteria assumes underlying schema tables are correctly indexed for performance.
-
-
-
Method Detail
-
basic
default CordaEndpointBuilderFactory.CordaEndpointConsumerBuilder basic()
-
contractStateClass
default CordaEndpointBuilderFactory.AdvancedCordaEndpointConsumerBuilder contractStateClass(Class<Object> 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<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(Object 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
-
-