Class CartGetItemsAggregationStrategy

java.lang.Object
com.skava.cart.orchestration.aggregation.CartGetItemsAggregationStrategy
All Implemented Interfaces:
org.apache.camel.AggregationStrategy

@Component("cartGetItemsAggregationStrategy") public class CartGetItemsAggregationStrategy extends Object implements org.apache.camel.AggregationStrategy

The Class CartGetItemsAggregationStrategy

This AggregationStrategy class is used to aggregate and construct the cart model

Version:
8.0
Author:
Infosys Equinox
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.camel.Exchange
    aggregate(org.apache.camel.Exchange oldExchange, org.apache.camel.Exchange newExchange)
    This method is used to aggregate two exchanges together into a single exchange.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.camel.AggregationStrategy

    aggregate, canPreComplete, onCompletion, onCompletion, onOptimisticLockFailure, preComplete, timeout
  • Constructor Details

    • CartGetItemsAggregationStrategy

      public CartGetItemsAggregationStrategy()
  • Method Details

    • aggregate

      public org.apache.camel.Exchange aggregate(org.apache.camel.Exchange oldExchange, org.apache.camel.Exchange newExchange)
      This method is used to aggregate two exchanges together into a single exchange.
      Specified by:
      aggregate in interface org.apache.camel.AggregationStrategy
      Parameters:
      oldExchange - Indicates the old exchange with cart response
      newExchange - Indicates the new exchange with cart response
      Returns:
      Returns new exchange with cart responses