Package akka.actor
Class TypedActorExtension
- java.lang.Object
-
- akka.actor.TypedActorExtension
-
- All Implemented Interfaces:
Extension,TypedActorFactory
public class TypedActorExtension extends java.lang.Object implements TypedActorFactory, Extension
Default timeout for typed actor methods with non-void return type
-
-
Constructor Summary
Constructors Constructor Description TypedActorExtension(ExtendedActorSystem system)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ActorRefFactoryactorFactory()Underlying dependency is to be able to create normal Actors<R,T extends R>
RcreateActorRefProxy(TypedProps<T> props, java.util.concurrent.atomic.AtomicReference<R> proxyVar, scala.Function0<ActorRef> actorRef)INTERNAL APITimeoutDefaultReturnTimeout()Default timeout for typed actor methods with non-void return typeActorRefgetActorRefFor(java.lang.Object proxy)Retrieves the underlying ActorRef for the supplied TypedActor proxy, or null if none foundTypedActor.TypedActorInvocationHandlerinvocationHandlerFor(java.lang.Object typedActor)INTERNAL APIbooleanisTypedActor(java.lang.Object proxyOrNot)Returns whether the supplied AnyRef is a TypedActor proxy or notExtendedActorSystemsystem()protected TypedActorExtensiontypedActor()Underlying dependency to a TypedActorExtension, which can either be contextual or ActorSystem "global"-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface akka.actor.TypedActorFactory
poisonPill, stop, typedActorOf, typedActorOf, typedActorOf
-
-
-
-
Constructor Detail
-
TypedActorExtension
public TypedActorExtension(ExtendedActorSystem system)
-
-
Method Detail
-
DefaultReturnTimeout
public final Timeout DefaultReturnTimeout()
Default timeout for typed actor methods with non-void return type- Returns:
- (undocumented)
-
actorFactory
protected ActorRefFactory actorFactory()
Description copied from interface:TypedActorFactoryUnderlying dependency is to be able to create normal Actors- Specified by:
actorFactoryin interfaceTypedActorFactory- Returns:
- (undocumented)
-
createActorRefProxy
public <R,T extends R> R createActorRefProxy(TypedProps<T> props, java.util.concurrent.atomic.AtomicReference<R> proxyVar, scala.Function0<ActorRef> actorRef)
INTERNAL API- Parameters:
props- (undocumented)proxyVar- (undocumented)actorRef- (undocumented)- Returns:
- (undocumented)
-
getActorRefFor
public ActorRef getActorRefFor(java.lang.Object proxy)
Retrieves the underlying ActorRef for the supplied TypedActor proxy, or null if none found- Specified by:
getActorRefForin interfaceTypedActorFactory- Parameters:
proxy- (undocumented)- Returns:
- (undocumented)
-
invocationHandlerFor
public TypedActor.TypedActorInvocationHandler invocationHandlerFor(java.lang.Object typedActor)
INTERNAL API- Parameters:
typedActor- (undocumented)- Returns:
- (undocumented)
-
isTypedActor
public boolean isTypedActor(java.lang.Object proxyOrNot)
Returns whether the supplied AnyRef is a TypedActor proxy or not- Specified by:
isTypedActorin interfaceTypedActorFactory- Parameters:
proxyOrNot- (undocumented)- Returns:
- (undocumented)
-
system
public ExtendedActorSystem system()
-
typedActor
protected TypedActorExtension typedActor()
Description copied from interface:TypedActorFactoryUnderlying dependency to a TypedActorExtension, which can either be contextual or ActorSystem "global"- Specified by:
typedActorin interfaceTypedActorFactory- Returns:
- (undocumented)
-
-