|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object akka.testkit.TestKit akka.testkit.TestProbe
public class TestProbe
TestKit-based probe which allows sending, reception and reply.
Constructor Summary | |
---|---|
TestProbe(ActorSystem _application)
|
Method Summary | |
---|---|
static TestProbe |
apply(ActorSystem system)
|
void |
forward(ActorRef actor,
java.lang.Object msg)
Forward this message as if in the TestActor's receive method with self.forward. |
ActorRef |
ref()
Shorthand to get the testActor. |
void |
reply(java.lang.Object msg)
Send message to the sender of the last dequeued message. |
void |
send(ActorRef actor,
java.lang.Object msg)
Send message to an actor while using the probe's TestActor as the sender. |
ActorRef |
sender()
Get sender of last received message. |
Methods inherited from class akka.testkit.TestKit |
---|
awaitCond, dilated, now, system, testActorId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestProbe(ActorSystem _application)
Method Detail |
---|
public static TestProbe apply(ActorSystem system)
public ActorRef ref()
public void send(ActorRef actor, java.lang.Object msg)
public void forward(ActorRef actor, java.lang.Object msg)
public ActorRef sender()
public void reply(java.lang.Object msg)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |