Modifier and Type | Optional Element and Description |
---|---|
boolean |
async
Indicate if the job should be run synchronously with application
or asynchronously.
|
int |
delayInSeconds
Specify the delay in seconds.
|
String |
id
Specify the ID of the scheduled job.
|
public abstract boolean async
Indicate if the job should be run synchronously with application or asynchronously.
Running job synchronously means the application will not start servicing incoming requests until the job is finished.
Running job asynchronously means the job will start in a separate thread and will not block the app from servicing incoming requests
true
if the annotated method shall be executed asynchronously or false
if the method all be executed synchronouslypublic abstract int delayInSeconds
Specify the delay in seconds.
Once this is set and the delay seconds is greater than 0, the job will be start after delay
seconds after app started. And the job will be executed asynchronously.
public abstract String id
Specify the ID of the scheduled job. Default value: empty string
Copyright © 2014–2018 ActFramework. All rights reserved.