|
Akka/Scala example source code file (SampleUntypedConsumer.java)
The SampleUntypedConsumer.java Akka example source code/** * Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com> */ package akka.camel; import akka.camel.javaapi.UntypedConsumerActor; /** * */ public class SampleUntypedConsumer extends UntypedConsumerActor { public String getEndpointUri() { return "direct:test-untyped-consumer"; } public void onReceive(Object message) { CamelMessage msg = (CamelMessage)message; String body = msg.getBodyAs(String.class, getCamelContext()); String header = msg.getHeaderAs("test", String.class,getCamelContext()); sender().tell(String.format("%s %s", body, header), getSelf()); } } Other Akka source code examplesHere is a short list of links related to this Akka SampleUntypedConsumer.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.