Class

de.knutwalker.akka.typed

PropsBuilder

Related Doc: package typed

Permalink

final class PropsBuilder[A] extends AnyVal

Type-curried creation of Props[A] to aid the type inference.

A

the message type this actor is receiving

Source
PropsBuilder.scala
See also

de.knutwalker.akka.typed.PropsOf

Linear Supertypes
AnyVal, Any
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. PropsBuilder
  2. AnyVal
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PropsBuilder(ignore: Option[Nothing])

    Permalink

    ignore

    dummy parameter as requirement for AnyVal. Option[Nothing] has one inhabitant, None. Unit is not possible, since it is a AnyVal type itself.

Value Members

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

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

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

    Permalink
    Definition Classes
    Any
  4. def apply[T <: Actor](clazz: Class[T], args: Any*): Props[A]

    Permalink

    Creates a new typed Props that uses the given class and constructor arguments to create instances of this actor.

    Creates a new typed Props that uses the given class and constructor arguments to create instances of this actor.

    Wrapper for akka.actor.Props[T](Class[T], Any*).

    T

    the actor type

    clazz

    the class of this actor

    args

    the constructor argumentes of this actor

    returns

    a typed Props to create ActorRef[A]s for this actor

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

    Permalink

    Creates a new typed Props that uses the given creator function to create instances of this actor.

    Creates a new typed Props that uses the given creator function to create instances of this actor.

    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.

    Wrapper for akka.actor.Props[T](=> T).

    T

    the actor type

    creator

    the thunk that create the new instance of this actor

    returns

    a typed Props to create ActorRef[A]s for this actor

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

    Permalink

    Creates a new typed Props that uses the default constructor of the given actor type to create new instances of this actor.

    Creates a new typed Props that uses the default constructor of the given actor type to create new instances of this actor.

    Wrapper for akka.actor.Props[T].

    T

    the actor type

    returns

    a typed Props to create ActorRef[A]s for this actor

  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  9. val ignore: Option[Nothing]

    Permalink

    dummy parameter as requirement for AnyVal.

    dummy parameter as requirement for AnyVal. Option[Nothing] has one inhabitant, None. Unit is not possible, since it is a AnyVal type itself.

  10. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  11. def toString(): String

    Permalink
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped