akka

akka

Small module to build concurrent & distributed applications via Akka.

exports

  • An ActorSystem

dependency

<dependency>
  <groupId>org.jooby</groupId>
  <artifactId>jooby-akka</artifactId>
  <version>1.6.6</version>
</dependency>

usage

{
  use(new Akka());

  get("/akka", promise((req, deferred) -> {
    ActorSystem sys = require(ActorSystem.class);
    ActorRef actor = sys.actorOf(...);
    // send the deferred to the actor
    actor.tell(deferred, actor);
  });
}

That’s all folks!

Happy coding!!!

akka.conf

These are the default properties for akka:

akka {

  loggers = ["akka.event.slf4j.Slf4jLogger"]

  # Options: ERROR, WARNING, INFO, DEBUG 
  loglevel = "INFO"

}