官术网_书友最值得收藏!

JobModule

When the application is launched, everything starts with JobModule. It configures the creation of Scheduler, which sends messages to SchedulerActor as given in the application.conf rate:

class JobModule extends AbstractModule with AkkaGuiceSupport {
def configure(): Unit = {
//configuring launch of price-fetching Actor
bindActor[SchedulerActor]("scheduler-actor")
bind(classOf[Scheduler]).asEagerSingleton()
}
}

To enable this module, inside application.conf, the following line is required:

play.modules.enabled += "modules.jobs.JobModule"
主站蜘蛛池模板: 阳朔县| 肥西县| 蓝山县| 延津县| 长垣县| 台中市| 远安县| 寻乌县| 长子县| 和平县| 太仆寺旗| 祁阳县| 泽库县| 苏尼特左旗| 镇宁| 建昌县| 公安县| 濮阳市| 化州市| 韶山市| 荃湾区| 浦县| 临澧县| 保山市| 鹤山市| 乌拉特后旗| 承德县| 萨迦县| 鲁山县| 平原县| 洪洞县| 丽江市| 衡水市| 青阳县| 宾阳县| 旅游| 临武县| 武清区| 洪雅县| 五原县| 潼南县|