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 ITxLogStepsProviderofStep(TransactionLogStepJson theStep) Convenience method to provide the step which the returned provider will return in a liststatic ITxLogStepsProviderofSteps(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- theTransactionLogStepJsonwhich will be returned in a list from the returnedITransactionLogStepsProvider- Returns:
- a
ITransactionLogStepsProviderwhich 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 ofTransactionLogStepJsonwhich will be returned in a list from the returnedITransactionLogStepsProvider- Returns:
- a
ITransactionLogStepsProviderwhich will return the received list of steps
-