|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object akka.actor.TypedActor
public class TypedActor
This represents the TypedActor Akka Extension, access to the functionality is done through a given ActorSystem.
Nested Class Summary | |
---|---|
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 Summary | |
---|---|
TypedActor()
|
Method Summary | ||
---|---|---|
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 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 TypedActor$ |
lookup()
|
|
static
|
self()
Returns the reference to the proxy when called inside a method call in a TypedActor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface akka.actor.ExtensionId |
---|
apply, createExtension, equals, get, hashCode |
Methods inherited from interface akka.actor.ExtensionIdProvider |
---|
lookup |
Constructor Detail |
---|
public TypedActor()
Method Detail |
---|
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)]"
java.lang.IllegalStateException
- if called outside of the scope of a method on this TypedActor
java.lang.ClassCastException
- if the supplied type T isn't the type of the proxy associated with this TypedActorpublic static ActorContext context()
public static scala.concurrent.ExecutionContextExecutor dispatcher()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |