Object

play.api.libs.concurrent

Akka

Related Doc: package concurrent

Permalink

object Akka

Helper to access the application defined Akka Actor system.

Source
Akka.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Akka
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def bindingOf[T <: Actor](name: String, props: (Props) ⇒ Props = identity)(implicit arg0: ClassTag[T]): Binding[ActorRef]

    Permalink

    Create a binding for an actor implemented by the given class, with the given name.

    Create a binding for an actor implemented by the given class, with the given name.

    This will instantiate the actor using Play's injector, allowing it to be dependency injected itself. The returned binding will provide the ActorRef for the actor, qualified with the given name, allowing it to be injected into other components.

    Example usage from a Play module:

    def bindings = Seq(
      Akka.bindingOf[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 {
      ...
    }
    T

    The class that implements the actor.

    name

    The name of the actor.

    props

    A function to provide props for the actor. The props passed in will just describe how to create the actor, this function can be used to provide additional configuration such as router and dispatcher configuration.

    returns

    A binding for the actor.

  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. def providerOf[T <: Actor](name: String, props: (Props) ⇒ Props = identity)(implicit arg0: ClassTag[T]): Provider[ActorRef]

    Permalink

    Create a provider for an actor implemented by the given class, with the given name.

    Create a provider for an actor implemented by the given class, with the given name.

    This will instantiate the actor using Play's injector, allowing it to be dependency injected itself. The returned provider will provide the ActorRef for the actor, allowing it to be injected into other components.

    Typically, you will want to use this in combination with a named qualifier, so that multiple ActorRefs can be bound, and the scope should be set to singleton or eager singleton. *

    T

    The class that implements the actor.

    name

    The name of the actor.

    props

    A function to provide props for the actor. The props passed in will just describe how to create the actor, this function can be used to provide additional configuration such as router and dispatcher configuration.

    returns

    A provider for the actor.

  17. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  18. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def system(implicit app: Application): ActorSystem

    Permalink

    Retrieve the application Akka Actor system, using an implicit application.

    Retrieve the application Akka Actor system, using an implicit application.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.5.0) Please use a dependency injected ActorSystem

Inherited from AnyRef

Inherited from Any

Ungrouped