Package akka.actor
Class TypedActor
- java.lang.Object
-
- akka.actor.TypedActor
-
public class TypedActor extends java.lang.Object
Deprecated.Use 'akka.actor.typed' API. Since 2.6.0.This represents the TypedActor Akka Extension, access to the functionality is done through a given ActorSystem.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TypedActor.MethodCall
Deprecated.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 class
TypedActor.MethodCall$
Deprecated.static interface
TypedActor.PostRestart
Deprecated.static interface
TypedActor.PostStop
Deprecated.Mix this into your TypedActor to be able to hook into its lifecyclestatic interface
TypedActor.PreRestart
Deprecated.Mix this into your TypedActor to be able to hook into its lifecyclestatic interface
TypedActor.PreStart
Deprecated.Mix this into your TypedActor to be able to hook into its lifecyclestatic interface
TypedActor.Receiver
Deprecated.Mix this into your TypedActor to be able to intercept Terminated messagesstatic class
TypedActor.SerializedMethodCall$
Deprecated.static class
TypedActor.SerializedTypedActorInvocationHandler$
Deprecated.static interface
TypedActor.Supervisor
Deprecated.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 TypedActorFactory
apply(ActorContext context)
Deprecated.Use 'akka.actor.typed' API.static ActorContext
context()
Deprecated.Returns the ActorContext (for a TypedActor) when inside a method call in a TypedActor.static TypedActorExtension
createExtension(ExtendedActorSystem system)
Deprecated.static scala.concurrent.ExecutionContextExecutor
dispatcher()
Deprecated.Returns the default dispatcher (for a TypedActor) when inside a method call in a TypedActor.static boolean
equals(java.lang.Object other)
Deprecated.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.static TypedActorExtension
get(ActorSystem system)
Deprecated.static TypedActorExtension
get(ClassicActorSystemProvider system)
Deprecated.static int
hashCode()
Deprecated.static TypedActor$
lookup()
Deprecated.static <T> T
self()
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 'akka.actor.typed' API. Since 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.
-
-