akka.testkit
Class ExtractRoute$
java.lang.Object
akka.testkit.ExtractRoute$
public class ExtractRoute$
- extends java.lang.Object
This object can be used to extract the Route
out of a RoutedActorRef.
These are the refs which represent actors created from Props
having a RouterConfig
. Use this extractor if you want to
test the routing directly, i.e. without actually dispatching messages.
val router = system.actorOf(Props[...].withRouter(new MyRouter))
val route = ExtractRoute(router)
route(sender -> message) must be(...)
Field Summary |
static ExtractRoute$ |
MODULE$
Static reference to the singleton instance of this Scala object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MODULE$
public static final ExtractRoute$ MODULE$
- Static reference to the singleton instance of this Scala object.
ExtractRoute$
public ExtractRoute$()
apply
public scala.PartialFunction<scala.Tuple2<ActorRef,java.lang.Object>,scala.collection.Iterable<Destination>> apply(ActorRef ref)