play.jobs
注释类型 OnApplicationStart


@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface OnApplicationStart

A job run at application start. Jobs can be executed in the background if you set async == true. This will make your app start accepting incoming requests faster.


可选元素摘要
 boolean async
          set this to true if you want the job to run in the background when your application starts.
 

async

public abstract boolean async
set this to true if you want the job to run in the background when your application starts.

返回:
true if job will be executed async on program start
默认值:
false


Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly