Package ca.cdr.api.camel
Interface ITxLogStepsProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Contract for Camel procedures which provide their own constructed list of transaction log steps
-
Method Summary
Modifier and TypeMethodDescriptionstatic ITxLogStepsProvider
ofStep
(TransactionLogStepJson theStep) Convenience method to provide the step which the returned provider will return in a liststatic ITxLogStepsProvider
ofSteps
(List<TransactionLogStepJson> theSteps) Convenience method to provide the steps which the returned provider will returnprovideTxLogSteps
(org.apache.camel.Exchange theExchange) Calls function which returns a list of transaction log steps from the passedExchange
-
Method Details
-
provideTxLogSteps
Calls function which returns a list of transaction log steps from the passedExchange
- Parameters:
theExchange
- the camel Exchange- Returns:
- list of TransactionLogStepJson the steps built
-
ofStep
Convenience method to provide the step which the returned provider will return in a list- Parameters:
theStep
- theTransactionLogStepJson
which will be returned in a list from the returnedITransactionLogStepsProvider
- Returns:
- a
ITransactionLogStepsProvider
which will return a singleton list with the received step
-
ofSteps
Convenience method to provide the steps which the returned provider will return- Parameters:
theSteps
- the list ofTransactionLogStepJson
which will be returned in a list from the returnedITransactionLogStepsProvider
- Returns:
- a
ITransactionLogStepsProvider
which will return the received list of steps
-