Packages

o

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.

Source
TypedActor.scala
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TypedActor
  2. ExtensionIdProvider
  3. ExtensionId
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. final 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: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. 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.

  5. 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
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def context: ActorContext

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

  9. 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
  10. implicit def dispatcher: ExecutionContextExecutor

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

  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. final def equals(other: Any): Boolean
    Definition Classes
    ExtensionId → AnyRef → Any
  13. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. 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

  15. 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 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
  16. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  17. final def hashCode(): Int
    Definition Classes
    ExtensionId → AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. def lookup(): TypedActor.type

    Returns the canonical ExtensionId for this Extension

    Returns the canonical ExtensionId for this Extension

    Definition Classes
    TypedActorExtensionIdProvider
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  23. 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)]"

    Throws IllegalStateException if called outside of the scope of a method on this TypedActor.

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

  24. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ExtensionIdProvider

Inherited from AnyRef

Inherited from Any

Ungrouped