akka.actor
Interface TypedActorFactory

All Known Implementing Classes:
ContextualTypedActorFactory, TypedActorExtension

public interface TypedActorFactory

A TypedActorFactory is something that can created TypedActor instances.


Method Summary
 ActorRefFactory actorFactory()
          Underlying dependency is to be able to create normal Actors
 ActorRef getActorRefFor(java.lang.Object proxy)
          Retrieves the underlying ActorRef for the supplied TypedActor proxy, or null if none found
 boolean isTypedActor(java.lang.Object proxyOrNot)
          Returns wether the supplied AnyRef is a TypedActor proxy or not
 boolean poisonPill(java.lang.Object proxy)
          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)
          Stops the underlying ActorRef for the supplied TypedActor proxy, if any, returns whether it could find the find the ActorRef or not
 TypedActorExtension typedActor()
          Underlying dependency to a TypedActorExtension, which can either be contextual or ActorSystem "global"
<R,T extends R>
R
typedActorOf(TypedProps<T> props)
          Creates a new TypedActor with the specified properties
<R,T extends R>
R
typedActorOf(TypedProps<T> props, ActorRef actorRef)
          Creates a TypedActor that intercepts the calls and forwards them as TypedActor.MethodCall to the provided ActorRef.
<R,T extends R>
R
typedActorOf(TypedProps<T> props, java.lang.String name)
          Creates a new TypedActor with the specified properties
 

Method Detail

actorFactory

ActorRefFactory actorFactory()
Underlying dependency is to be able to create normal Actors


typedActor

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


stop

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


poisonPill

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


isTypedActor

boolean isTypedActor(java.lang.Object proxyOrNot)
Returns wether the supplied AnyRef is a TypedActor proxy or not


getActorRefFor

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


typedActorOf

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


typedActorOf

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


typedActorOf

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