Package org.springframework.integration.samples.cafe

Examples of org.springframework.integration.samples.cafe.Delivery


                orderItem.getDrinkType(),
                orderItem.isIced(),
                orderItem.getShots()))
        .aggregate(aggregator -> aggregator
            .outputProcessor(g ->
                new Delivery(g.getMessages()
                    .stream()
                    .map(message -> (Drink) message.getPayload())
                    .collect(Collectors.toList())))
            .correlationStrategy(m -> ((Drink) m.getPayload()).getOrderNumber()), null)
        .handle(CharacterStreamWritingMessageHandler.stdout());
View Full Code Here


@MessageEndpoint
public class Waiter {

  @Aggregator(inputChannel = "preparedDrinks", outputChannel = "deliveries")
  public Delivery prepareDelivery(List<Drink> drinks) {
    return new Delivery(drinks);
  }
View Full Code Here

* @author Marius Bogoevici
*/
public class Waiter {

  public Delivery prepareDelivery(List<Drink> drinks) {
    return new Delivery(drinks);
  }
View Full Code Here

TOP

Related Classes of org.springframework.integration.samples.cafe.Delivery

Copyright © 2018 www.massapicom. 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.