akka.actor

Props

object Props extends Serializable

Factory for Props instances.

Props is a ActorRef configuration object, that is immutable, so it is thread safe and fully sharable.

Used when creating new actors through ActorSystem.actorOf and ActorContext.actorOf.

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Props
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def apply(clazz: Class[_], args: Any*): Props

    Scala API: create a Props given a class and its constructor arguments.

  7. def apply[T <: Actor](creator: ⇒ T)(implicit arg0: ClassTag[T]): Props

    Scala API: Returns a Props that has default values except for "creator" which will be a function that creates an instance using the supplied thunk.

    Scala API: Returns a Props that has default values except for "creator" which will be a function that creates an instance using the supplied thunk.

    CAVEAT: Required mailbox type cannot be detected when using anonymous mixin composition when creating the instance. For example, the following will not detect the need for DequeBasedMessageQueueSemantics as defined in Stash:

    'Props(new Actor with Stash { ... })

    Instead you must create a named class that mixin the trait, e.g. class MyActor extends Actor with Stash.

  8. def apply[T <: Actor]()(implicit arg0: ClassTag[T]): Props

    Scala API: Returns a Props that has default values except for "creator" which will be a function that creates an instance of the supplied type using the default constructor.

  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def create[T <: Actor](creator: Creator[T]): Props

    Create new Props from the given akka.japi.Creator.

  12. def create(clazz: Class[_], args: AnyRef*): Props

    Java API: create a Props given a class and its constructor arguments.

    Java API: create a Props given a class and its constructor arguments.

    Annotations
    @varargs()
  13. final val default: Props

    The default Props instance, uses the settings from the Props object starting with default*.

  14. final val defaultCreator: () ⇒ Actor

    The defaultCreator, simply throws an UnsupportedOperationException when applied, which is used when creating a Props

  15. final val defaultDeploy: Deploy

    The default Deploy instance which is used when creating a Props

  16. final val defaultRoutedProps: RouterConfig

    The defaultRoutedProps is NoRouter which is used when creating a Props

  17. final val empty: Props

    A Props instance whose creator will create an actor that doesn't respond to any message

  18. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

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

    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  28. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def apply(creator: () ⇒ Actor = Props.defaultCreator, dispatcher: String = Deploy.NoDispatcherGiven, routerConfig: RouterConfig = Props.defaultRoutedProps, deploy: Deploy = Props.defaultDeploy): Props

    The deprecated legacy constructor.

    The deprecated legacy constructor.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.2) use Props.withDispatcher and friends

  2. def apply(creator: Creator[_ <: Actor]): Props

    Returns a Props that has default values except for "creator" which will be a function that creates an instance using the supplied thunk.

    Returns a Props that has default values except for "creator" which will be a function that creates an instance using the supplied thunk.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.2) give class and arguments instead

  3. def apply(creator: ⇒ Actor): Props

    Scala API: Returns a Props that has default values except for "creator" which will be a function that creates an instance using the supplied thunk.

    Scala API: Returns a Props that has default values except for "creator" which will be a function that creates an instance using the supplied thunk.

    Attributes
    protected
    Annotations
    @deprecated
    Deprecated

    (Since version 2.2) use creator with ClassTag

  4. def unapply(p: Props)(dummy: Int = 0): Option[(() ⇒ Actor, String, RouterConfig, Deploy)]

    The deprecated legacy extractor.

    The deprecated legacy extractor.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.2) use three-argument version

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped