Package org.apache.pekko.actor
Class TypedActorExtension
- java.lang.Object
-
- org.apache.pekko.actor.TypedActorExtension
-
- All Implemented Interfaces:
Extension
,TypedActorFactory
public class TypedActorExtension extends java.lang.Object implements TypedActorFactory, Extension
-
-
Constructor Summary
Constructors Constructor Description TypedActorExtension(ExtendedActorSystem system)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ActorRefFactory
actorFactory()
Underlying dependency is to be able to create normal ActorsTimeout
DefaultReturnTimeout()
Default timeout for typed actor methods with non-void return typeActorRef
getActorRefFor(java.lang.Object proxy)
Retrieves the underlying ActorRef for the supplied TypedActor proxy, or null if none foundboolean
isTypedActor(java.lang.Object proxyOrNot)
Returns whether the supplied AnyRef is a TypedActor proxy or notExtendedActorSystem
system()
protected TypedActorExtension
typedActor()
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 org.apache.pekko.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
-
actorFactory
protected ActorRefFactory actorFactory()
Description copied from interface:TypedActorFactory
Underlying dependency is to be able to create normal Actors- Specified by:
actorFactory
in interfaceTypedActorFactory
-
getActorRefFor
public ActorRef getActorRefFor(java.lang.Object proxy)
Retrieves the underlying ActorRef for the supplied TypedActor proxy, or null if none found- Specified by:
getActorRefFor
in interfaceTypedActorFactory
-
isTypedActor
public boolean isTypedActor(java.lang.Object proxyOrNot)
Returns whether the supplied AnyRef is a TypedActor proxy or not- Specified by:
isTypedActor
in interfaceTypedActorFactory
-
system
public ExtendedActorSystem system()
-
typedActor
protected TypedActorExtension typedActor()
Description copied from interface:TypedActorFactory
Underlying dependency to a TypedActorExtension, which can either be contextual or ActorSystem "global"- Specified by:
typedActor
in interfaceTypedActorFactory
-
-