public class TestActorRef<T extends akka.actor.Actor>
extends akka.actor.LocalActorRef
Constructor and Description |
---|
TestActorRef(akka.actor.ActorSystem _system,
akka.actor.Props _props,
akka.actor.ActorRef _supervisor,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
static <T extends akka.actor.Actor> |
apply(akka.actor.ActorRef supervisor,
scala.reflect.ClassTag<T> t,
akka.actor.ActorSystem system) |
static <T extends akka.actor.Actor> |
apply(akka.actor.ActorRef supervisor,
java.lang.String name,
scala.reflect.ClassTag<T> t,
akka.actor.ActorSystem system) |
static <T extends akka.actor.Actor> |
apply(scala.reflect.ClassTag<T> t,
akka.actor.ActorSystem system) |
static <T extends akka.actor.Actor> |
apply(scala.Function0<T> factory,
scala.reflect.ClassTag<T> evidence$1,
akka.actor.ActorSystem system) |
static <T extends akka.actor.Actor> |
apply(scala.Function0<T> factory,
java.lang.String name,
scala.reflect.ClassTag<T> evidence$2,
akka.actor.ActorSystem system) |
static <T extends akka.actor.Actor> |
apply(akka.actor.Props props,
akka.actor.ActorRef supervisor,
akka.actor.ActorSystem system) |
static <T extends akka.actor.Actor> |
apply(akka.actor.Props props,
akka.actor.ActorRef supervisor,
java.lang.String name,
akka.actor.ActorSystem system) |
static <T extends akka.actor.Actor> |
apply(akka.actor.Props props,
akka.actor.ActorSystem system) |
static <T extends akka.actor.Actor> |
apply(akka.actor.Props props,
java.lang.String name,
akka.actor.ActorSystem system) |
static <T extends akka.actor.Actor> |
apply(java.lang.String name,
scala.reflect.ClassTag<T> t,
akka.actor.ActorSystem system) |
static <T extends akka.actor.Actor> |
create(akka.actor.ActorSystem system,
akka.actor.Props props)
Java API: create a TestActorRef in the given system for the given props,
with a random name.
|
static <T extends akka.actor.Actor> |
create(akka.actor.ActorSystem system,
akka.actor.Props props,
akka.actor.ActorRef supervisor)
Java API: create a TestActorRef in the given system for the given props,
with the given supervisor and a random name.
|
static <T extends akka.actor.Actor> |
create(akka.actor.ActorSystem system,
akka.actor.Props props,
akka.actor.ActorRef supervisor,
java.lang.String name)
Java API: create a TestActorRef in the given system for the given props,
with the given supervisor and name.
|
static <T extends akka.actor.Actor> |
create(akka.actor.ActorSystem system,
akka.actor.Props props,
java.lang.String name)
Java API: create a TestActorRef in the given system for the given props,
with the given name.
|
akka.dispatch.MessageDispatcher |
dispatcher() |
protected akka.actor.ActorCell |
newActorCell(akka.actor.ActorSystemImpl system,
akka.actor.InternalActorRef ref,
akka.actor.Props props,
akka.dispatch.MessageDispatcher dispatcher,
akka.actor.InternalActorRef supervisor) |
akka.actor.Props |
props() |
static java.lang.String |
randomName() |
void |
receive(java.lang.Object o)
Directly inject messages into actor receive behavior.
|
void |
receive(java.lang.Object o,
akka.actor.ActorRef sender)
Directly inject messages into actor receive behavior.
|
java.lang.String |
toString() |
T |
underlyingActor()
Retrieve reference to the underlying actor, where the static type matches the factory used inside the
constructor.
|
akka.actor.ActorRef |
unwatch(akka.actor.ActorRef subject)
Unregisters this actor from being a death monitor of the provided ActorRef
This means that this actor will not get a Terminated()-message when the provided actor
is permanently terminated.
|
akka.actor.ActorRef |
watch(akka.actor.ActorRef subject)
Registers this actor to be a death monitor of the provided ActorRef
This means that this actor will get a Terminated()-message when the provided actor
is permanently terminated.
|
$bang, $bang$default$2, actorContext, children, getChild, getParent, getSingleChild, isLocal, isTerminated, path, provider, restart, resume, sendSystemMessage, start, stop, suspend, underlying, writeReplace
public TestActorRef(akka.actor.ActorSystem _system, akka.actor.Props _props, akka.actor.ActorRef _supervisor, java.lang.String name)
public static java.lang.String randomName()
public static <T extends akka.actor.Actor> TestActorRef<T> apply(scala.Function0<T> factory, scala.reflect.ClassTag<T> evidence$1, akka.actor.ActorSystem system)
public static <T extends akka.actor.Actor> TestActorRef<T> apply(scala.Function0<T> factory, java.lang.String name, scala.reflect.ClassTag<T> evidence$2, akka.actor.ActorSystem system)
public static <T extends akka.actor.Actor> TestActorRef<T> apply(akka.actor.Props props, akka.actor.ActorSystem system)
public static <T extends akka.actor.Actor> TestActorRef<T> apply(akka.actor.Props props, java.lang.String name, akka.actor.ActorSystem system)
public static <T extends akka.actor.Actor> TestActorRef<T> apply(akka.actor.Props props, akka.actor.ActorRef supervisor, akka.actor.ActorSystem system)
public static <T extends akka.actor.Actor> TestActorRef<T> apply(akka.actor.Props props, akka.actor.ActorRef supervisor, java.lang.String name, akka.actor.ActorSystem system)
public static <T extends akka.actor.Actor> TestActorRef<T> apply(scala.reflect.ClassTag<T> t, akka.actor.ActorSystem system)
public static <T extends akka.actor.Actor> TestActorRef<T> apply(java.lang.String name, scala.reflect.ClassTag<T> t, akka.actor.ActorSystem system)
public static <T extends akka.actor.Actor> TestActorRef<T> apply(akka.actor.ActorRef supervisor, scala.reflect.ClassTag<T> t, akka.actor.ActorSystem system)
public static <T extends akka.actor.Actor> TestActorRef<T> apply(akka.actor.ActorRef supervisor, java.lang.String name, scala.reflect.ClassTag<T> t, akka.actor.ActorSystem system)
public static <T extends akka.actor.Actor> TestActorRef<T> create(akka.actor.ActorSystem system, akka.actor.Props props, akka.actor.ActorRef supervisor, java.lang.String name)
system
- (undocumented)props
- (undocumented)supervisor
- (undocumented)name
- (undocumented)public static <T extends akka.actor.Actor> TestActorRef<T> create(akka.actor.ActorSystem system, akka.actor.Props props, akka.actor.ActorRef supervisor)
system
- (undocumented)props
- (undocumented)supervisor
- (undocumented)public static <T extends akka.actor.Actor> TestActorRef<T> create(akka.actor.ActorSystem system, akka.actor.Props props, java.lang.String name)
system
- (undocumented)props
- (undocumented)name
- (undocumented)public static <T extends akka.actor.Actor> TestActorRef<T> create(akka.actor.ActorSystem system, akka.actor.Props props)
system
- (undocumented)props
- (undocumented)public akka.actor.Props props()
public akka.dispatch.MessageDispatcher dispatcher()
protected akka.actor.ActorCell newActorCell(akka.actor.ActorSystemImpl system, akka.actor.InternalActorRef ref, akka.actor.Props props, akka.dispatch.MessageDispatcher dispatcher, akka.actor.InternalActorRef supervisor)
newActorCell
in class akka.actor.LocalActorRef
public void receive(java.lang.Object o)
o
- (undocumented)public void receive(java.lang.Object o, akka.actor.ActorRef sender)
o
- (undocumented)sender
- (undocumented)public T underlyingActor()
public akka.actor.ActorRef watch(akka.actor.ActorRef subject)
subject
- (undocumented)public akka.actor.ActorRef unwatch(akka.actor.ActorRef subject)
subject
- (undocumented)public java.lang.String toString()
toString
in class akka.actor.ActorRef