public class Akka
extends java.lang.Object
Constructor and Description |
---|
Akka() |
Modifier and Type | Method and Description |
---|---|
static <A> F.Promise<A> |
asPromise(scala.concurrent.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.
|
public static <A> F.Promise<A> asPromise(scala.concurrent.Future<A> akkaFuture)
public static akka.actor.ActorSystem system()
public static <T> F.Promise<T> future(java.util.concurrent.Callable<T> callable)
public static <T> F.Promise<T> timeout(java.util.concurrent.Callable<T> callable, java.lang.Long duration, java.util.concurrent.TimeUnit unit)