play.api.libs

concurrent

package concurrent

Visibility
  1. Public
  2. All

Type Members

  1. class ActorRefProvider[T <: Actor] extends Provider[ActorRef]

    Provider for creating actor refs

  2. class ActorSystemProvider extends Provider[ActorSystem]

    Provider for the actor system

    Provider for the actor system

    Annotations
    @Singleton()
  3. trait AkkaComponents extends AnyRef

    Components for configuring Akka.

  4. trait AkkaGuiceSupport extends AnyRef

    Support for binding actors with Guice.

    Support for binding actors with Guice.

    Mix this trait in with a Guice AbstractModule to get convenient support for binding actors. For example:

    class MyModule extends AbstractModule with AkkaGuiceSupport {
      def configure = {
        bindActor[MyActor]("myActor")
      }
    }

    Then to use the above actor in your application, add a qualified injected dependency, like so:

    class MyController @Inject() (@Named("myActor") myActor: ActorRef) extends Controller {
      ...
    }
  5. class ExecutionContextProvider extends Provider[ExecutionContext]

    Provider for the default execution context

    Provider for the default execution context

    Annotations
    @Singleton()
  6. trait InjectedActorSupport extends AnyRef

    Support for creating injected child actors.

Value Members

  1. object ActorSystemProvider

  2. object Akka

    Helper to access the application defined Akka Actor system.

  3. object Execution

  4. object Promise

    useful helper methods to create and compose Promises

Ungrouped