Package akka.actor

Class TypedActor$

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static TypedActor$ MODULE$
      Deprecated.
      Static reference to the singleton instance of this Scala object.
    • Constructor Summary

      Constructors 
      Constructor Description
      TypedActor$()
      Deprecated.
       
    • Field Detail

      • MODULE$

        public static final TypedActor$ MODULE$
        Deprecated.
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • TypedActor$

        public TypedActor$()
        Deprecated.
    • Method Detail

      • get

        public TypedActorExtension get​(ActorSystem system)
        Deprecated.
        Description copied from interface: ExtensionId
        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)
         

        Specified by:
        get in interface ExtensionId<TypedActorExtension>
        Parameters:
        system - (undocumented)
        Returns:
        (undocumented)
      • get

        public TypedActorExtension get​(ClassicActorSystemProvider system)
        Deprecated.
        Description copied from interface: ExtensionId
        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: ClassicActorSystemProvider): TheExtension = super.get(system)
         

        Specified by:
        get in interface ExtensionId<TypedActorExtension>
        Parameters:
        system - (undocumented)
        Returns:
        (undocumented)
      • apply

        public TypedActorFactory apply​(ActorContext context)
        Deprecated.
        Use 'akka.actor.typed' API. Since 2.6.0.
        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.
        Parameters:
        context - (undocumented)
        Returns:
        (undocumented)
      • get

        public TypedActorFactory get​(ActorContext context)
        Deprecated.
        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

        Parameters:
        context - (undocumented)
        Returns:
        (undocumented)
      • self

        public <T> T self()
        Deprecated.
        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.

        Returns:
        (undocumented)
      • context

        public ActorContext context()
        Deprecated.
        Returns the ActorContext (for a TypedActor) when inside a method call in a TypedActor.
        Returns:
        (undocumented)
      • dispatcher

        public scala.concurrent.ExecutionContextExecutor dispatcher()
        Deprecated.
        Returns the default dispatcher (for a TypedActor) when inside a method call in a TypedActor.
        Returns:
        (undocumented)