org.apache.camel.example.tracer
Class QuoteAggregator
java.lang.Object
org.apache.camel.example.tracer.QuoteAggregator
- All Implemented Interfaces:
- org.apache.camel.processor.aggregate.AggregationStrategy
public class QuoteAggregator
- extends Object
- implements org.apache.camel.processor.aggregate.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
|
Method Summary |
org.apache.camel.Exchange |
aggregate(org.apache.camel.Exchange oldExchange,
org.apache.camel.Exchange newExchange)
|
void |
setCoolWords(List<String> coolWords)
|
| 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 org.apache.camel.Exchange aggregate(org.apache.camel.Exchange oldExchange,
org.apache.camel.Exchange newExchange)
- Specified by:
aggregate in interface org.apache.camel.processor.aggregate.AggregationStrategy
Apache Camel