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
Mix this into your TypedActor to be able to hook into its lifecycle
Mix this into your TypedActor to be able to hook into its lifecycle
Mix this into your TypedActor to be able to hook into its lifecycle
Mix this into your TypedActor to be able to intercept Terminated messages
Mix this into your TypedActor to be able to define supervisor strategy
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.
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.
Returns an instance of the extension identified by this ExtensionId instance.
Returns an instance of the extension identified by this ExtensionId instance.
Returns the ActorContext (for a TypedActor) when inside a method call in a TypedActor.
Is used by Akka to instantiate the Extension identified by this ExtensionId, internal use only.
Is used by Akka to instantiate the Extension identified by this ExtensionId, internal use only.
Returns the default dispatcher (for a TypedActor) when inside a method call in a TypedActor.
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.
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
Returns an instance of the extension identified by this ExtensionId instance.
Returns an instance of the extension identified by this ExtensionId instance. Java API For extensions written in Scala that are to be used from Java also, this method should be overridden to get correct return type.
override def get(system: ActorSystem): TheExtension = super.get(system)
Returns the canonical ExtensionId for this Extension
Returns the canonical ExtensionId for this Extension
Returns the reference to the proxy when called inside a method call in a TypedActor
Returns the reference to the proxy when called inside a method call in a TypedActor
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.
This represents the TypedActor Akka Extension, access to the functionality is done through a given ActorSystem.