org.apache.camel.example.tracer
Class QuoteAggregator
java.lang.Object
org.apache.camel.example.tracer.QuoteAggregator
- All Implemented Interfaces:
- AggregationStrategy
public class QuoteAggregator
- extends Object
- implements AggregationStrategy
Our aggregator where we aggregate all the quotes and find the
the best quotes based on the one that has the most cool words
from our cools words list
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QuoteAggregator
public QuoteAggregator()
setCoolWords
public void setCoolWords(List<String> coolWords)
aggregate
public Exchange aggregate(Exchange oldExchange,
Exchange newExchange)
- Specified by:
aggregate in interface AggregationStrategy
Apache CAMEL