Examples of CafeAggregationStrategy


Examples of org.apache.camel.example.cafe.stuff.CafeAggregationStrategy

        JndiRegistry jndi = new JndiRegistry();
        jndi.bind("drinkRouter", new DrinkRouter());
        jndi.bind("orderSplitter", new OrderSplitter());
        jndi.bind("barista", new Barista());
        jndi.bind("waiter", new Waiter());
        jndi.bind("aggregatorStrategy", new CafeAggregationStrategy());
        return jndi;
    }
View Full Code Here

Examples of org.apache.camel.example.cafe.stuff.CafeAggregationStrategy

       
        from("seda:coldDrinks?concurrentConsumers=2").to("bean:barista?method=prepareColdDrink").to("direct:deliveries");
        from("seda:hotDrinks?concurrentConsumers=3").to("bean:barista?method=prepareHotDrink").to("direct:deliveries");
       
        from("direct:deliveries")
            .aggregate(new CafeAggregationStrategy()).method("waiter", "checkOrder").completionTimeout(5 * 1000L)
            .to("bean:waiter?method=prepareDelivery")
            .to("bean:waiter?method=deliverCafes");

    }
View Full Code Here

Examples of org.apache.camel.example.cafe.stuff.CafeAggregationStrategy

        JndiRegistry jndi = super.createRegistry();
        jndi.bind("drinkRouter", driverRouter);
        jndi.bind("orderSplitter", new OrderSplitter());
        jndi.bind("barista", new Barista());
        jndi.bind("waiter", waiter);
        jndi.bind("aggregatorStrategy", new CafeAggregationStrategy());
        return jndi;
    }
View Full Code Here

Examples of org.apache.camel.example.cafe.stuff.CafeAggregationStrategy

        JndiRegistry jndi = new JndiRegistry();
        jndi.bind("drinkRouter", new DrinkRouter());
        jndi.bind("orderSplitter", new OrderSplitter());
        jndi.bind("barista", new Barista());
        jndi.bind("waiter", new Waiter());
        jndi.bind("aggregatorStrategy", new CafeAggregationStrategy());
        return jndi;
    }
View Full Code Here

Examples of org.apache.camel.example.cafe.stuff.CafeAggregationStrategy

       
        from("seda:coldDrinks?concurrentConsumers=2").to("bean:barista?method=prepareColdDrink").to("direct:deliveries");
        from("seda:hotDrinks?concurrentConsumers=3").to("bean:barista?method=prepareHotDrink").to("direct:deliveries");
       
        from("direct:deliveries")
            .aggregate(new CafeAggregationStrategy()).method("waiter", "checkOrder")
            .batchTimeout(5 * 1000L)
            .to("bean:waiter?method=prepareDelivery")
            .to("bean:waiter?method=deliverCafes");
       
    }
View Full Code Here

Examples of org.apache.camel.example.cafe.stuff.CafeAggregationStrategy

        JndiRegistry jndi = super.createRegistry();
        jndi.bind("drinkRouter", driverRouter);
        jndi.bind("orderSplitter", new OrderSplitter());
        jndi.bind("barista", new Barista());
        jndi.bind("waiter", waiter);
        jndi.bind("aggregatorStrategy", new CafeAggregationStrategy());
        return jndi;
    }
View Full Code Here

Examples of org.apache.camel.example.cafe.stuff.CafeAggregationStrategy

        JndiRegistry jndi = new JndiRegistry();
        jndi.bind("drinkRouter", new DrinkRouter());
        jndi.bind("orderSplitter", new OrderSplitter());
        jndi.bind("barista", new Barista());
        jndi.bind("waiter", new Waiter());
        jndi.bind("aggregatorStrategy", new CafeAggregationStrategy());
        return jndi;
    }
View Full Code Here

Examples of org.apache.camel.example.cafe.stuff.CafeAggregationStrategy

       
        from("seda:coldDrinks?concurrentConsumers=2").to("bean:barista?method=prepareColdDrink").to("direct:deliveries");
        from("seda:hotDrinks?concurrentConsumers=3").to("bean:barista?method=prepareHotDrink").to("direct:deliveries");
       
        from("direct:deliveries")
            .aggregate(new CafeAggregationStrategy()).method("waiter", "checkOrder").completionTimeout(5 * 1000L)
            .to("bean:waiter?method=prepareDelivery")
            .to("bean:waiter?method=deliverCafes");

    }
View Full Code Here

Examples of org.apache.camel.example.cafe.stuff.CafeAggregationStrategy

        JndiRegistry jndi = super.createRegistry();
        jndi.bind("drinkRouter", driverRouter);
        jndi.bind("orderSplitter", new OrderSplitter());
        jndi.bind("barista", new Barista());
        jndi.bind("waiter", waiter);
        jndi.bind("aggregatorStrategy", new CafeAggregationStrategy());
        return jndi;
    }
View Full Code Here

Examples of org.apache.camel.example.cafe.stuff.CafeAggregationStrategy

        JndiRegistry jndi = super.createRegistry();
        jndi.bind("drinkRouter", driverRouter);
        jndi.bind("orderSplitter", new OrderSplitter());
        jndi.bind("barista", new Barista());
        jndi.bind("waiter", waiter);
        jndi.bind("aggregatorStrategy", new CafeAggregationStrategy());
        return jndi;
    }
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.