akka.testkit
Class TestActor
java.lang.Object
akka.testkit.TestActor
- All Implemented Interfaces:
- Actor
public class TestActor
- extends java.lang.Object
- implements Actor
Method Summary |
TestActor.AutoPilot |
autopilot()
|
static scala.Function1<java.lang.Object,java.lang.Object> |
FALSE()
|
scala.Option<scala.PartialFunction<java.lang.Object,java.lang.Object>> |
ignore()
|
void |
postStop()
User overridable callback. |
static Props |
props(java.util.concurrent.BlockingDeque<TestActor.Message> queue)
|
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> |
receive()
This defines the initial actor behavior, it must return a partial function
with the actor logic. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestActor
public TestActor(java.util.concurrent.BlockingDeque<TestActor.Message> queue)
FALSE
public static scala.Function1<java.lang.Object,java.lang.Object> FALSE()
props
public static Props props(java.util.concurrent.BlockingDeque<TestActor.Message> queue)
ignore
public scala.Option<scala.PartialFunction<java.lang.Object,java.lang.Object>> ignore()
autopilot
public TestActor.AutoPilot autopilot()
receive
public scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive()
- Description copied from interface:
Actor
- This defines the initial actor behavior, it must return a partial function
with the actor logic.
- Specified by:
receive
in interface Actor
postStop
public void postStop()
- Description copied from interface:
Actor
- User overridable callback.
Is called asynchronously after 'actor.stop()' is invoked.
Empty default implementation.
- Specified by:
postStop
in interface Actor