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

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"
主站蜘蛛池模板: 英吉沙县| 平邑县| 西平县| 沙雅县| 麦盖提县| 平武县| 绍兴市| 柳林县| 佳木斯市| 莫力| 望城县| 巴彦淖尔市| 扶绥县| 西安市| 武冈市| 柳州市| 永泰县| 太白县| 万荣县| 凤山县| 措美县| 遂昌县| 乌兰察布市| 防城港市| 搜索| 汝阳县| 定结县| 迭部县| 神池县| 长宁区| 睢宁县| 东海县| 德化县| 绥滨县| 保亭| 达孜县| 宁安市| 安义县| 庐江县| 金山区| 贡嘎县|