akka.actor

TypedActor

object TypedActor extends ExtensionId[TypedActorExtension] with ExtensionIdProvider

This represents the TypedActor Akka Extension, access to the functionality is done through a given ActorSystem.

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

Type Members

  1. case class MethodCall(method: Method, parameters: Array[AnyRef]) extends Product with Serializable

    This class represents a Method call, and has a reference to the Method to be called and the parameters to supply It's sent to the ActorRef backing the TypedActor and can be serialized and deserialized

  2. trait PostRestart extends AnyRef

  3. trait PostStop extends AnyRef

    Mix this into your TypedActor to be able to hook into its lifecycle

  4. trait PreRestart extends AnyRef

    Mix this into your TypedActor to be able to hook into its lifecycle

  5. trait PreStart extends AnyRef

    Mix this into your TypedActor to be able to hook into its lifecycle

  6. trait Receiver extends AnyRef

    Mix this into your TypedActor to be able to intercept Terminated messages

  7. trait Supervisor extends AnyRef

    Mix this into your TypedActor to be able to define supervisor strategy

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(context: ActorContext): TypedActorFactory

    Returns a contextual TypedActorFactory of this extension, this means that any TypedActors created by this TypedActorExtension will be children to the specified context, this allows for creating hierarchies of TypedActors.

    Returns a contextual TypedActorFactory of this extension, this means that any TypedActors created by this TypedActorExtension will be children to the specified context, this allows for creating hierarchies of TypedActors. Do _not_ let this instance escape the TypedActor since that will not be thread-safe.

  7. def apply(system: ActorSystem): TypedActorExtension

    Returns an instance of the extension identified by this ExtensionId instance.

    Returns an instance of the extension identified by this ExtensionId instance.

    Definition Classes
    ExtensionId
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def context: ActorContext

    Returns the ActorContext (for a TypedActor) when inside a method call in a TypedActor.

  11. def createExtension(system: ExtendedActorSystem): TypedActorExtension

    Is used by Akka to instantiate the Extension identified by this ExtensionId, internal use only.

    Is used by Akka to instantiate the Extension identified by this ExtensionId, internal use only.

    Definition Classes
    TypedActorExtensionId
  12. implicit def dispatcher: ExecutionContext

    Returns the default dispatcher (for a TypedActor) when inside a method call in a TypedActor.

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

    Definition Classes
    AnyRef
  14. final def equals(other: Any): Boolean

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def get(context: ActorContext): TypedActorFactory

    Returns a contextual TypedActorFactory of this extension, this means that any TypedActors created by this TypedActorExtension will be children to the specified context, this allows for creating hierarchies of TypedActors.

    Returns a contextual TypedActorFactory of this extension, this means that any TypedActors created by this TypedActorExtension will be children to the specified context, this allows for creating hierarchies of TypedActors. Do _not_ let this instance escape the TypedActor since that will not be thread-safe.

    Java API

  17. def get(system: ActorSystem): TypedActorExtension

    Returns an instance of the extension identified by this ExtensionId instance.

    Returns an instance of the extension identified by this ExtensionId instance. Java API For extensions written in Scala that are to be used used from Java also, this method should be overridden to get correct return type.

    override def get(system: ActorSystem): TheExtension = super.get(system)
    Definition Classes
    TypedActorExtensionId
  18. final def getClass(): Class[_]

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

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

    Definition Classes
    Any
  21. def lookup(): TypedActor.type

    Returns the canonical ExtensionId for this Extension

    Returns the canonical ExtensionId for this Extension

    Definition Classes
    TypedActorExtensionIdProvider
  22. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  25. def self[T <: AnyRef]: T

    Returns the reference to the proxy when called inside a method call in a TypedActor

    Returns the reference to the proxy when called inside a method call in a TypedActor

    Example:

    class FooImpl extends Foo { def doFoo { val myself = TypedActor.self[Foo] } }

    Useful when you want to send a reference to this TypedActor to someone else.

    NEVER EXPOSE "this" to someone else, always use "self[TypeOfInterface(s)]"

    Exceptions thrown
    ClassCastException

    if the supplied type T isn't the type of the proxy associated with this TypedActor

    IllegalStateException

    if called outside of the scope of a method on this TypedActor

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

    Definition Classes
    AnyRef
  27. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ExtensionIdProvider

Inherited from AnyRef

Inherited from Any

Ungrouped