Examples of PredicateAggregationCollection


Examples of org.apache.camel.processor.aggregate.PredicateAggregationCollection

                // START SNIPPET: e1
                // create the aggregation collection we will use.
                // - we will correlate the received message based on the id header
                // - as we will just keep the latest message we use the latest strategy
                // - and finally we stop aggregate if we receive 2 or more messages
                AggregationCollection ag = new PredicateAggregationCollection(header("id"),
                    new UseLatestAggregationStrategy(),
                    header(Exchange.AGGREGATED_COUNT).isEqualTo(3));

                // our route is aggregating from the direct queue and sending the response to the mock
                from("direct:start")
View Full Code Here

Examples of org.apache.camel.processor.aggregate.PredicateAggregationCollection

        this(endpoint, processor, new DefaultAggregationCollection(correlationExpression, aggregationStrategy));
    }

    public Aggregator(Endpoint endpoint, Processor processor, Expression correlationExpression,
                      AggregationStrategy aggregationStrategy, Predicate aggregationCompletedPredicate) {
        this(endpoint, processor, new PredicateAggregationCollection(correlationExpression, aggregationStrategy, aggregationCompletedPredicate));
        this.aggregationCompletedPredicate = aggregationCompletedPredicate;
    }
View Full Code Here

Examples of org.apache.camel.processor.aggregate.PredicateAggregationCollection

                errorHandler(deadLetterChannel("mock:error"));

                onException(CamelException.class).maximumRedeliveries(2);

                from("seda:start")
                    .aggregator(new PredicateAggregationCollection(header("id"),
                        new AggregationStrategy() {
                            public Exchange aggregate(Exchange oldExchange, Exchange newExchange) {
                                return newExchange;
                            }
                        },
View Full Code Here

Examples of org.apache.camel.processor.aggregate.PredicateAggregationCollection

                // START SNIPPET: e1
                // create the aggregation collection we will use.
                // - we will correlate the received message based on the id header
                // - as we will just keep the latest message we use the latest strategy
                // - and finally we stop aggregate if we receive 2 or more messages
                AggregationCollection ag = new PredicateAggregationCollection(header("id"),
                    new UseLatestAggregationStrategy(),
                    header(Exchange.AGGREGATED_COUNT).isEqualTo(3));

                // our route is aggregating from the direct queue and sending the response to the mock
                from("direct:start")
View Full Code Here

Examples of org.apache.camel.processor.aggregate.PredicateAggregationCollection

        this(processor, new DefaultAggregationCollection(correlationExpression, aggregationStrategy));
    }

    public Aggregator(Processor processor, Expression correlationExpression,
                      AggregationStrategy aggregationStrategy, Predicate aggregationCompletedPredicate) {
        this(processor, new PredicateAggregationCollection(correlationExpression, aggregationStrategy, aggregationCompletedPredicate));
        this.aggregationCompletedPredicate = aggregationCompletedPredicate;
    }
View Full Code Here

Examples of org.apache.camel.processor.aggregate.PredicateAggregationCollection

        this.correlationExpression = correlationExpression;
    }

    public Aggregator(Processor processor, Expression correlationExpression, AggregationStrategy aggregationStrategy,
                      Predicate aggregationCompletedPredicate) {
        this(processor, new PredicateAggregationCollection(correlationExpression, aggregationStrategy, aggregationCompletedPredicate));
        this.correlationExpression = correlationExpression;
    }
View Full Code Here

Examples of org.apache.camel.processor.aggregate.PredicateAggregationCollection

                errorHandler(deadLetterChannel("mock:error"));

                onException(CamelException.class).maximumRedeliveries(2);

                from("seda:start")
                    .aggregate(new PredicateAggregationCollection(header("id"),
                        new AggregationStrategy() {
                            public Exchange aggregate(Exchange oldExchange, Exchange newExchange) {
                                return newExchange;
                            }
                        },
View Full Code Here

Examples of org.apache.camel.processor.aggregate.PredicateAggregationCollection

                // START SNIPPET: e1
                // create the aggregation collection we will use.
                // - we will correlate the received message based on the id header
                // - as we will just keep the latest message we use the latest strategy
                // - and finally we stop aggregate if we receive 2 or more messages
                AggregationCollection ag = new PredicateAggregationCollection(header("id"),
                    new UseLatestAggregationStrategy(),
                    property(Exchange.AGGREGATED_SIZE).isEqualTo(3));

                // our route is aggregating from the direct queue and sending the response to the mock
                from("direct:start")
View Full Code Here

Examples of org.apache.camel.processor.aggregate.PredicateAggregationCollection

        this.correlationExpression = correlationExpression;
    }

    public Aggregator(Processor processor, Expression correlationExpression, AggregationStrategy aggregationStrategy,
                      Predicate aggregationCompletedPredicate) {
        this(processor, new PredicateAggregationCollection(correlationExpression, aggregationStrategy, aggregationCompletedPredicate));
        this.correlationExpression = correlationExpression;
    }
View Full Code Here

Examples of org.apache.camel.processor.aggregate.PredicateAggregationCollection

        this(processor, new DefaultAggregationCollection(correlationExpression, aggregationStrategy));
    }

    public Aggregator(Processor processor, Expression correlationExpression, AggregationStrategy aggregationStrategy,
                      Predicate aggregationCompletedPredicate) {
        this(processor, new PredicateAggregationCollection(correlationExpression, aggregationStrategy, aggregationCompletedPredicate));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.