- Scala Machine Learning Projects
- Md. Rezaul Karim
- 63字
- 2021-06-30 19:05:40
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"
推薦閱讀
- 21天學(xué)通PHP
- 輕松學(xué)Java
- JMAG電機(jī)電磁仿真分析與實例解析
- Google App Inventor
- Visual Basic從初學(xué)到精通
- Maya極速引擎:材質(zhì)篇
- Moodle Course Design Best Practices
- 樂高機(jī)器人—槍械武器庫
- Lightning Fast Animation in Element 3D
- 悟透AutoCAD 2009案例自學(xué)手冊
- 精通LabVIEW程序設(shè)計
- JRuby語言實戰(zhàn)技術(shù)
- 30天學(xué)通Java Web項目案例開發(fā)
- Kubernetes on AWS
- Hands-On Geospatial Analysis with R and QGIS