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 ActorContext
actorFactory()
Underlying dependency is to be able to create normal Actorsstatic ContextualTypedActorFactory
apply(TypedActorExtension typedActor, ActorContext actorFactory)
boolean
canEqual(java.lang.Object x$1)
ContextualTypedActorFactory
copy(TypedActorExtension typedActor, ActorContext actorFactory)
TypedActorExtension
copy$default$1()
ActorContext
copy$default$2()
boolean
equals(java.lang.Object x$1)
ActorRef
getActorRefFor(java.lang.Object proxy)
Retrieves the underlying ActorRef for the supplied TypedActor proxy, or null if none foundint
hashCode()
boolean
isTypedActor(java.lang.Object proxyOrNot)
Returns whether the supplied AnyRef is a TypedActor proxy or notint
productArity()
java.lang.Object
productElement(int x$1)
java.lang.String
productElementName(int x$1)
scala.collection.Iterator<java.lang.Object>
productIterator()
java.lang.String
productPrefix()
java.lang.String
toString()
TypedActorExtension
typedActor()
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:TypedActorFactory
Underlying dependency to a TypedActorExtension, which can either be contextual or ActorSystem "global"- Specified by:
typedActor
in interfaceTypedActorFactory
-
actorFactory
public ActorContext 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)
Description copied from interface:TypedActorFactory
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)
Description copied from interface:TypedActorFactory
Returns whether the supplied AnyRef is a TypedActor proxy or not- Specified by:
isTypedActor
in 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:
productPrefix
in interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArity
in interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElement
in interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIterator
in interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqual
in interfacescala.Equals
-
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
productElementName
in interfacescala.Product
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equals
in interfacescala.Equals
- Overrides:
equals
in classjava.lang.Object
-
-