Package akka.actor
Class TypedActor
- java.lang.Object
-
- akka.actor.TypedActor
-
public class TypedActor extends java.lang.ObjectReturns 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 classTypedActor.MethodCallInvokes the Method on the supplied instancestatic classTypedActor.MethodCall$static interfaceTypedActor.PostRestartstatic interfaceTypedActor.PostStopstatic interfaceTypedActor.PreRestartstatic interfaceTypedActor.PreStartstatic interfaceTypedActor.Receiverstatic classTypedActor.SerializedMethodCallstatic classTypedActor.SerializedMethodCall$static classTypedActor.SerializedTypedActorInvocationHandlerstatic classTypedActor.SerializedTypedActorInvocationHandler$static interfaceTypedActor.Supervisorstatic classTypedActor.TypedActorInvocationHandler
-
Constructor Summary
Constructors Constructor Description TypedActor()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TypedActorFactoryapply(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 ActorContextcontext()Returns the ActorContext (for a TypedActor) when inside a method call in a TypedActor.static TypedActorExtensioncreateExtension(ExtendedActorSystem system)static scala.concurrent.ExecutionContextExecutordispatcher()Returns the default dispatcher (for a TypedActor) when inside a method call in a TypedActor.static booleanequals(java.lang.Object other)static TypedActorFactoryget(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 TypedActorExtensionget(ActorSystem system)static TypedActorExtensionget(ClassicActorSystemProvider system)static inthashCode()static TypedActor$lookup()static <T> Tself()
-
-
-
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)
-
-