Package org.apache.pekko.actor
Class TypedActor
- java.lang.Object
-
- org.apache.pekko.actor.TypedActor
-
public class TypedActor extends java.lang.ObjectDeprecated.Use 'org.apache.pekko.actor.typed' API. Since Akka 2.6.0.This represents the TypedActor Pekko Extension, access to the functionality is done through a given ActorSystem.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTypedActor.MethodCallDeprecated.This class represents a Method call, and has a reference to the Method to be called and the parameters to supply It's sent to the ActorRef backing the TypedActor and can be serialized and deserializedstatic classTypedActor.MethodCall$Deprecated.static interfaceTypedActor.PostRestartDeprecated.static interfaceTypedActor.PostStopDeprecated.Mix this into your TypedActor to be able to hook into its lifecyclestatic interfaceTypedActor.PreRestartDeprecated.Mix this into your TypedActor to be able to hook into its lifecyclestatic interfaceTypedActor.PreStartDeprecated.Mix this into your TypedActor to be able to hook into its lifecyclestatic interfaceTypedActor.ReceiverDeprecated.Mix this into your TypedActor to be able to intercept Terminated messagesstatic classTypedActor.SerializedMethodCall$Deprecated.static classTypedActor.SerializedTypedActorInvocationHandler$Deprecated.static interfaceTypedActor.SupervisorDeprecated.Mix this into your TypedActor to be able to define supervisor strategy
-
Constructor Summary
Constructors Constructor Description TypedActor()Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static TypedActorFactoryapply(ActorContext context)Deprecated.Use 'org.apache.pekko.actor.typed' API.static ActorContextcontext()Deprecated.Returns the ActorContext (for a TypedActor) when inside a method call in a TypedActor.static TypedActorExtensioncreateExtension(ExtendedActorSystem system)Deprecated.static scala.concurrent.ExecutionContextExecutordispatcher()Deprecated.Returns the default dispatcher (for a TypedActor) when inside a method call in a TypedActor.static booleanequals(java.lang.Object other)Deprecated.static TypedActorFactoryget(ActorContext context)Deprecated.Returns a contextual TypedActorFactory of this extension, this means that any TypedActors created by this TypedActorExtension will be children to the specified context, this allows for creating hierarchies of TypedActors.static TypedActorExtensionget(ActorSystem system)Deprecated.static TypedActorExtensionget(ClassicActorSystemProvider system)Deprecated.static inthashCode()Deprecated.static TypedActor$lookup()Deprecated.static <T> Tself()Deprecated.Returns the reference to the proxy when called inside a method call in a TypedActor
-
-
-
Method Detail
-
get
public static TypedActorExtension get(ActorSystem system)
Deprecated.
-
get
public static TypedActorExtension get(ClassicActorSystemProvider system)
Deprecated.
-
lookup
public static TypedActor$ lookup()
Deprecated.
-
createExtension
public static TypedActorExtension createExtension(ExtendedActorSystem system)
Deprecated.
-
apply
public static TypedActorFactory apply(ActorContext context)
Deprecated.Use 'org.apache.pekko.actor.typed' API. Since Akka 2.6.0.Returns a contextual TypedActorFactory of this extension, this means that any TypedActors created by this TypedActorExtension will be children to the specified context, this allows for creating hierarchies of TypedActors. Do _not_ let this instance escape the TypedActor since that will not be thread-safe.
-
get
public static TypedActorFactory get(ActorContext context)
Deprecated.Returns a contextual TypedActorFactory of this extension, this means that any TypedActors created by this TypedActorExtension will be children to the specified context, this allows for creating hierarchies of TypedActors. Do _not_ let this instance escape the TypedActor since that will not be thread-safe.Java API
-
self
public static <T> T self()
Deprecated.Returns the reference to the proxy when called inside a method call in a TypedActorExample:
class FooImpl extends Foo { def doFoo { val myself = TypedActor.self[Foo] } }Useful when you want to send a reference to this TypedActor to someone else.
NEVER EXPOSE "this" to someone else, always use "self[TypeOfInterface(s)]"
Throws IllegalStateException if called outside of the scope of a method on this TypedActor.
Throws ClassCastException if the supplied type T isn't the type of the proxy associated with this TypedActor.
-
context
public static ActorContext context()
Deprecated.Returns the ActorContext (for a TypedActor) when inside a method call in a TypedActor.
-
dispatcher
public static scala.concurrent.ExecutionContextExecutor dispatcher()
Deprecated.Returns the default dispatcher (for a TypedActor) when inside a method call in a TypedActor.
-
hashCode
public static final int hashCode()
Deprecated.
-
equals
public static final boolean equals(java.lang.Object other)
Deprecated.
-
-