@Retention(value=CLASS)
@Target(value=METHOD)
@Deprecated
public @interface OnClass
Mark a method to be an adhoc event handler
This annotation is deprecated, please use OnEvent
instead
Modifier and Type | Required Element and Description |
---|---|
java.lang.Class[] |
value
Deprecated.
Specify classes as the event IDs
|
Modifier and Type | Optional Element and Description |
---|---|
boolean |
async
Deprecated.
Indicate if the handler should be run synchronously with application
or asynchronously.
|
public abstract java.lang.Class[] value
Specify classes as the event IDs
public abstract boolean async
Indicate if the handler 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.