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(scala.concurrent.Future<A> future)
          Deprecated. Since 2.2. Use F.Promise.wrap(Future) instead.
static
<T> F.Promise<T>
future(java.util.concurrent.Callable<T> callable)
          Deprecated. Since 2.2. Use Promise#promise(Function0) instead.
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)
          Deprecated. Since 2.2. Use Promise#delayed(Function0,long,TimeUnit) instead.
 
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

@Deprecated
public static <A> F.Promise<A> asPromise(scala.concurrent.Future<A> future)
Deprecated. Since 2.2. Use F.Promise.wrap(Future) instead.

Transforms a Scala Future into a Play Promise.


system

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


future

@Deprecated
public static <T> F.Promise<T> future(java.util.concurrent.Callable<T> callable)
Deprecated. Since 2.2. Use Promise#promise(Function0) instead.

Executes a block of code asynchronously in the application Akka Actor system.


timeout

@Deprecated
public static <T> F.Promise<T> timeout(java.util.concurrent.Callable<T> callable,
                                                  java.lang.Long duration,
                                                  java.util.concurrent.TimeUnit unit)
Deprecated. Since 2.2. Use Promise#delayed(Function0,long,TimeUnit) instead.

Returns a Promise which is redeemed after a period of time.