play.libs
Class Akka

java.lang.Object
  extended by play.libs.Akka

public class Akka
extends java.lang.Object

Helper to access the application defined Akka Actor system.


Constructor Summary
Akka()
           
 
Method Summary
static
<A> F.Promise<A>
asPromise(akka.dispatch.Future<A> akkaFuture)
          Transform this Akka future to a Play Promise.
static
<T> F.Promise<T>
future(java.util.concurrent.Callable<T> callable)
          Executes a block of code asynchronously in the application Akka Actor system.
static akka.actor.ActorSystem system()
          Retrieve the application Akka Actor system.
static
<T> F.Promise<T>
timeout(java.util.concurrent.Callable<T> callable, java.lang.Long duration, java.util.concurrent.TimeUnit unit)
          Returns a Promise which is redeemed after a period of time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Akka

public Akka()
Method Detail

asPromise

public static <A> F.Promise<A> asPromise(akka.dispatch.Future<A> akkaFuture)
Transform this Akka future to a Play Promise.


system

public static akka.actor.ActorSystem system()
Retrieve the application Akka Actor system.


future

public static <T> F.Promise<T> future(java.util.concurrent.Callable<T> callable)
Executes a block of code asynchronously in the application Akka Actor system.


timeout

public static <T> F.Promise<T> timeout(java.util.concurrent.Callable<T> callable,
                                       java.lang.Long duration,
                                       java.util.concurrent.TimeUnit unit)
Returns a Promise which is redeemed after a period of time.