Package akka.actor

Class TypedActor


  • public class TypedActor
    extends java.lang.Object
    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.
    • Constructor Detail

      • TypedActor

        public TypedActor()
    • Method Detail

      • apply

        public static TypedActorFactory apply​(ActorContext context)
        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 static TypedActorFactory get​(ActorContext context)
        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 static <T> T self()
      • context

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

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

        public static final int hashCode()
      • equals

        public static final boolean equals​(java.lang.Object other)