Package akka.actor
Class TypedActor
- java.lang.Object
-
- akka.actor.TypedActor
-
public class TypedActor extends java.lang.Object
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TypedActor.MethodCall
Invokes the Method on the supplied instancestatic class
TypedActor.MethodCall$
static interface
TypedActor.PostRestart
static interface
TypedActor.PostStop
static interface
TypedActor.PreRestart
static interface
TypedActor.PreStart
static interface
TypedActor.Receiver
static class
TypedActor.SerializedMethodCall
static class
TypedActor.SerializedMethodCall$
static class
TypedActor.SerializedTypedActorInvocationHandler
static class
TypedActor.SerializedTypedActorInvocationHandler$
static interface
TypedActor.Supervisor
static class
TypedActor.TypedActorInvocationHandler
-
Constructor Summary
Constructors Constructor Description TypedActor()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TypedActorFactory
apply(ActorContext context)
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 ActorContext
context()
Returns the ActorContext (for a TypedActor) when inside a method call in a TypedActor.static TypedActorExtension
createExtension(ExtendedActorSystem system)
static scala.concurrent.ExecutionContextExecutor
dispatcher()
Returns the default dispatcher (for a TypedActor) when inside a method call in a TypedActor.static boolean
equals(java.lang.Object other)
static TypedActorFactory
get(ActorContext context)
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)
static TypedActorExtension
get(ClassicActorSystemProvider system)
static int
hashCode()
static TypedActor$
lookup()
static <T> T
self()
-
-
-
Method Detail
-
get
public static TypedActorExtension get(ActorSystem system)
-
get
public static TypedActorExtension get(ClassicActorSystemProvider system)
-
lookup
public static TypedActor$ lookup()
-
createExtension
public static TypedActorExtension createExtension(ExtendedActorSystem system)
-
apply
public static TypedActorFactory apply(ActorContext context)
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.- Parameters:
context
- (undocumented)- Returns:
- (undocumented)
-
get
public static TypedActorFactory get(ActorContext context)
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
- Parameters:
context
- (undocumented)- Returns:
- (undocumented)
-
self
public static <T> T self()
-
context
public static ActorContext context()
Returns the ActorContext (for a TypedActor) when inside a method call in a TypedActor.- Returns:
- (undocumented)
-
dispatcher
public static scala.concurrent.ExecutionContextExecutor dispatcher()
Returns the default dispatcher (for a TypedActor) when inside a method call in a TypedActor.- Returns:
- (undocumented)
-
hashCode
public static final int hashCode()
-
equals
public static final boolean equals(java.lang.Object other)
-
-