@Retention(value=CLASS)
@Target(value=METHOD)
public @interface OnAppEvent
Mark a method to be a job that must be run upon a certain app event
occurred
Modifier and Type | Required Element and Description |
---|---|
AppEventId |
value
Specify the
app event id the job should start with |
public abstract AppEventId value
Specify the app event id
the job should start with
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 synchronouslyCopyright © 2014–2017 ActFramework. All rights reserved.