Interface TypedActorFactory

  • All Known Implementing Classes:
    ContextualTypedActorFactory, TypedActorExtension

    public interface TypedActorFactory
    Deprecated.
    Use 'org.apache.pekko.actor.typed' API. Since Akka 2.6.0.
    A TypedActorFactory is something that can created TypedActor instances.
    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      ActorRefFactory actorFactory()
      Deprecated.
      Underlying dependency is to be able to create normal Actors
      ActorRef getActorRefFor​(java.lang.Object proxy)
      Deprecated.
      Retrieves the underlying ActorRef for the supplied TypedActor proxy, or null if none found
      boolean isTypedActor​(java.lang.Object proxyOrNot)
      Deprecated.
      Returns whether the supplied AnyRef is a TypedActor proxy or not
      boolean poisonPill​(java.lang.Object proxy)
      Deprecated.
      Sends a PoisonPill the underlying ActorRef for the supplied TypedActor proxy, if any, returns whether it could find the find the ActorRef or not
      boolean stop​(java.lang.Object proxy)
      Deprecated.
      Stops the underlying ActorRef for the supplied TypedActor proxy, if any, returns whether it could find the find the ActorRef or not
      TypedActorExtension typedActor()
      Deprecated.
      Underlying dependency to a TypedActorExtension, which can either be contextual or ActorSystem "global"
      <R,​T extends R>
      R
      typedActorOf​(TypedProps<T> props)
      Deprecated.
      Creates a new TypedActor with the specified properties
      <R,​T extends R>
      R
      typedActorOf​(TypedProps<T> props, java.lang.String name)
      Deprecated.
      Creates a new TypedActor with the specified properties
      <R,​T extends R>
      R
      typedActorOf​(TypedProps<T> props, ActorRef actorRef)
      Deprecated.
      Creates a TypedActor that intercepts the calls and forwards them as pekko.actor.TypedActor.MethodCall to the provided ActorRef.
    • Method Detail

      • actorFactory

        ActorRefFactory actorFactory()
        Deprecated.
        Underlying dependency is to be able to create normal Actors
      • getActorRefFor

        ActorRef getActorRefFor​(java.lang.Object proxy)
        Deprecated.
        Retrieves the underlying ActorRef for the supplied TypedActor proxy, or null if none found
      • isTypedActor

        boolean isTypedActor​(java.lang.Object proxyOrNot)
        Deprecated.
        Returns whether the supplied AnyRef is a TypedActor proxy or not
      • poisonPill

        boolean poisonPill​(java.lang.Object proxy)
        Deprecated.
        Sends a PoisonPill the underlying ActorRef for the supplied TypedActor proxy, if any, returns whether it could find the find the ActorRef or not
      • stop

        boolean stop​(java.lang.Object proxy)
        Deprecated.
        Stops the underlying ActorRef for the supplied TypedActor proxy, if any, returns whether it could find the find the ActorRef or not
      • typedActor

        TypedActorExtension typedActor()
        Deprecated.
        Underlying dependency to a TypedActorExtension, which can either be contextual or ActorSystem "global"
      • typedActorOf

        <R,​T extends R> R typedActorOf​(TypedProps<T> props)
        Deprecated.
        Creates a new TypedActor with the specified properties
      • typedActorOf

        <R,​T extends R> R typedActorOf​(TypedProps<T> props,
                                             java.lang.String name)
        Deprecated.
        Creates a new TypedActor with the specified properties
      • typedActorOf

        <R,​T extends R> R typedActorOf​(TypedProps<T> props,
                                             ActorRef actorRef)
        Deprecated.
        Creates a TypedActor that intercepts the calls and forwards them as pekko.actor.TypedActor.MethodCall to the provided ActorRef.