public interface TypedActorFactory
Modifier and Type | Method and Description |
---|---|
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 whether 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> |
typedActorOf(TypedProps<T> props)
Creates a new TypedActor with the specified properties
|
<R,T extends 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> |
typedActorOf(TypedProps<T> props,
java.lang.String name)
Creates a new TypedActor with the specified properties
|
ActorRefFactory actorFactory()
TypedActorExtension typedActor()
boolean stop(java.lang.Object proxy)
proxy
- (undocumented)boolean poisonPill(java.lang.Object proxy)
proxy
- (undocumented)boolean isTypedActor(java.lang.Object proxyOrNot)
proxyOrNot
- (undocumented)ActorRef getActorRefFor(java.lang.Object proxy)
proxy
- (undocumented)<R,T extends R> R typedActorOf(TypedProps<T> props)
props
- (undocumented)<R,T extends R> R typedActorOf(TypedProps<T> props, java.lang.String name)
props
- (undocumented)name
- (undocumented)<R,T extends R> R typedActorOf(TypedProps<T> props, ActorRef actorRef)
TypedActor.MethodCall
to the provided ActorRef.props
- (undocumented)actorRef
- (undocumented)