The unborkinging

This commit is contained in:
Viktor Klang 2012-07-12 15:00:11 +02:00
parent acf9aa6aa4
commit ebe0cc05c9
8 changed files with 48 additions and 52 deletions

View file

@ -1,6 +1,6 @@
package docs.camel
import akka.actor.{Props, ActorSystem}
import akka.actor.{ Props, ActorSystem }
import akka.camel.CamelExtension
object Introduction {
@ -89,14 +89,14 @@ object Introduction {
val camel = CamelExtension(system)
val actorRef = system.actorOf(Props[MyEndpoint])
// get a future reference to the activation of the endpoint of the Consumer Actor
val activationFuture = camel.activationFutureFor(actorRef,10 seconds)
val activationFuture = camel.activationFutureFor(actorRef, 10 seconds)
// or, block wait on the activation
camel.awaitActivation(actorRef, 10 seconds)
//#CamelActivation
//#CamelDeactivation
system.stop(actorRef)
// get a future reference to the deactivation of the endpoint of the Consumer Actor
val deactivationFuture = camel.activationFutureFor(actorRef,10 seconds)
val deactivationFuture = camel.activationFutureFor(actorRef, 10 seconds)
// or, block wait on the deactivation
camel.awaitDeactivation(actorRef, 10 seconds)
//#CamelDeactivation