use of akka.routing.RoundRobinPool in project newrelic-java-agent by newrelic.
the class TestApp method sendRoutedMessageToRouteeInTransaction.
@Trace(dispatcher = true)
public static void sendRoutedMessageToRouteeInTransaction(ActorSystem system) throws InterruptedException {
final ActorRef routee = system.actorOf(Props.create(Routee.class));
ActorRef router = system.actorOf(new RoundRobinPool(5).props(Props.create(RoutingActor.class, routee)));
// Let system initialize
Thread.sleep(2000);
router.tell("routing", null);
// Let message processing finish
Thread.sleep(2000);
}
use of akka.routing.RoundRobinPool in project newrelic-java-agent by newrelic.
the class TestApp method sendRoutedMessageInTransaction.
@Trace(dispatcher = true)
public static void sendRoutedMessageInTransaction(ActorSystem system) throws InterruptedException {
ActorRef router = system.actorOf(new RoundRobinPool(5).props(Props.create(RoutingActor.class)));
// Let system initialize
Thread.sleep(2000);
router.tell("routing", null);
// Let message processing finish
Thread.sleep(2000);
}
Aggregations