@Inject public QueueSenderRouter() { this.router = getContext().actorOf( FromConfig.getInstance().props( Props.create( GuiceActorProducer.class, QueueSender.class ) .withDispatcher("akka.blocking-io-dispatcher")), "router"); }
@Inject public UniqueValuesRouter() { router = getContext().actorOf( FromConfig.getInstance().props( Props.create( GuiceActorProducer.class, UniqueValueActor.class) .withDispatcher("akka.blocking-io-dispatcher")), "router"); }
@Inject public QueueWriterRouter() { this.router = getContext().actorOf( FromConfig.getInstance().props( Props.create( GuiceActorProducer.class, QueueWriter.class ) .withDispatcher("akka.blocking-io-dispatcher")), "router"); }
@Inject public QueueActorRouter( QueueActorRouterProducer queueActorRouterProducer, QakkaFig qakkaFig ) { this.queueActorRouterProducer = queueActorRouterProducer; this.qakkaFig = qakkaFig; this.routerRef = getContext().actorOf( FromConfig.getInstance().props( Props.create( GuiceActorProducer.class, QueueActor.class) .withDispatcher("akka.blocking-io-dispatcher")), "router"); }
/** * Create Props from the configuration file for the specified actorClass using the * SpringActorProducer class. * * @param actorClass class of an actor * @return a Props that will create the named actor bean using Spring */ public Props fromConfigProps(final Class<? extends Actor> actorClass) { return FromConfig.getInstance().props(Props.create(SpringActorProducer.class, applicationContext, actorClass)); }
/** * Create Props from the configuration file for the specified actorClass and additional parameters using the * SpringActorProducer class. * * @param actorClass class of an actor * @param params additional parameters for actor creation * @return a Props that will create the named actor bean using Spring */ public Props fromConfigProps(final Class<? extends Actor> actorClass, Object... params) { return FromConfig.getInstance().props( Props.create(SpringActorProducer.class, applicationContext, actorClass, params)); } }