public class TypedActor
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TypedActor.MethodCall
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 deserialized
|
static class |
TypedActor.MethodCall$ |
static interface |
TypedActor.PostRestart |
static interface |
TypedActor.PostStop
Mix this into your TypedActor to be able to hook into its lifecycle
|
static interface |
TypedActor.PreRestart
Mix this into your TypedActor to be able to hook into its lifecycle
|
static interface |
TypedActor.PreStart
Mix this into your TypedActor to be able to hook into its lifecycle
|
static interface |
TypedActor.Receiver
Mix this into your TypedActor to be able to intercept Terminated messages
|
static class |
TypedActor.SerializedMethodCall
INTERNAL API
|
static class |
TypedActor.SerializedMethodCall$ |
static class |
TypedActor.SerializedTypedActorInvocationHandler
INTERNAL API
|
static class |
TypedActor.SerializedTypedActorInvocationHandler$ |
static interface |
TypedActor.Supervisor
Mix this into your TypedActor to be able to define supervisor strategy
|
static class |
TypedActor.TypedActor<R,T extends R>
INTERNAL API
|
static class |
TypedActor.TypedActorInvocationHandler
INTERNAL API
|
Constructor and Description |
---|
TypedActor() |
Modifier and Type | Method and 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 int |
hashCode() |
static TypedActor$ |
lookup() |
static <T> T |
self()
Returns the reference to the proxy when called inside a method call in a TypedActor
|
public static TypedActorExtension get(ActorSystem system)
public static TypedActor$ lookup()
public static TypedActorExtension createExtension(ExtendedActorSystem system)
public static TypedActorFactory apply(ActorContext context)
context
- (undocumented)public static TypedActorFactory get(ActorContext context)
Java API
context
- (undocumented)public static <T> T self()
Example:
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.
public static ActorContext context()
public static scala.concurrent.ExecutionContextExecutor dispatcher()
public static final int hashCode()
public static final boolean equals(java.lang.Object other)