Package org.apache.pekko.actor
Class ContextualTypedActorFactory
- java.lang.Object
-
- org.apache.pekko.actor.ContextualTypedActorFactory
-
- All Implemented Interfaces:
java.io.Serializable,TypedActorFactory,scala.Equals,scala.Product
public final class ContextualTypedActorFactory extends java.lang.Object implements TypedActorFactory, scala.Product, java.io.Serializable
ContextualTypedActorFactory allows TypedActors to create children, effectively forming the same Actor Supervision Hierarchies as normal Actors can.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ContextualTypedActorFactory(TypedActorExtension typedActor, ActorContext actorFactory)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ActorContextactorFactory()Underlying dependency is to be able to create normal Actorsstatic ContextualTypedActorFactoryapply(TypedActorExtension typedActor, ActorContext actorFactory)booleancanEqual(java.lang.Object x$1)ContextualTypedActorFactorycopy(TypedActorExtension typedActor, ActorContext actorFactory)TypedActorExtensioncopy$default$1()ActorContextcopy$default$2()booleanequals(java.lang.Object x$1)ActorRefgetActorRefFor(java.lang.Object proxy)Retrieves the underlying ActorRef for the supplied TypedActor proxy, or null if none foundinthashCode()booleanisTypedActor(java.lang.Object proxyOrNot)Returns whether the supplied AnyRef is a TypedActor proxy or notintproductArity()java.lang.ObjectproductElement(int x$1)java.lang.StringproductElementName(int x$1)scala.collection.Iterator<java.lang.Object>productIterator()java.lang.StringproductPrefix()java.lang.StringtoString()TypedActorExtensiontypedActor()Underlying dependency to a TypedActorExtension, which can either be contextual or ActorSystem "global"static scala.Option<scala.Tuple2<TypedActorExtension,ActorContext>>unapply(ContextualTypedActorFactory x$0)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.pekko.actor.TypedActorFactory
poisonPill, stop, typedActorOf, typedActorOf, typedActorOf
-
-
-
-
Constructor Detail
-
ContextualTypedActorFactory
public ContextualTypedActorFactory(TypedActorExtension typedActor, ActorContext actorFactory)
-
-
Method Detail
-
apply
public static ContextualTypedActorFactory apply(TypedActorExtension typedActor, ActorContext actorFactory)
-
unapply
public static scala.Option<scala.Tuple2<TypedActorExtension,ActorContext>> unapply(ContextualTypedActorFactory x$0)
-
typedActor
public TypedActorExtension typedActor()
Description copied from interface:TypedActorFactoryUnderlying dependency to a TypedActorExtension, which can either be contextual or ActorSystem "global"- Specified by:
typedActorin interfaceTypedActorFactory
-
actorFactory
public ActorContext actorFactory()
Description copied from interface:TypedActorFactoryUnderlying dependency is to be able to create normal Actors- Specified by:
actorFactoryin interfaceTypedActorFactory
-
getActorRefFor
public ActorRef getActorRefFor(java.lang.Object proxy)
Description copied from interface:TypedActorFactoryRetrieves the underlying ActorRef for the supplied TypedActor proxy, or null if none found- Specified by:
getActorRefForin interfaceTypedActorFactory
-
isTypedActor
public boolean isTypedActor(java.lang.Object proxyOrNot)
Description copied from interface:TypedActorFactoryReturns whether the supplied AnyRef is a TypedActor proxy or not- Specified by:
isTypedActorin interfaceTypedActorFactory
-
copy
public ContextualTypedActorFactory copy(TypedActorExtension typedActor, ActorContext actorFactory)
-
copy$default$1
public TypedActorExtension copy$default$1()
-
copy$default$2
public ActorContext copy$default$2()
-
productPrefix
public java.lang.String productPrefix()
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArityin interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElementin interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equalsin interfacescala.Equals- Overrides:
equalsin classjava.lang.Object
-
-