|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- parameters type to be executedpublic interface Task<T extends TaskParameters>
Interface to defines the task lifecycle. Generically defines the TaskParameters
subclass used to parameterize the task execution. Implementing classes must define a
public no-args constructor that will be reflectively invoked when the Task
is executed.
Method Summary | |
---|---|
void |
after()
Called after the task is executed, can be used to close resources. |
void |
before(T parameters)
Called before the actual execution of the task. |
void |
execute(T parameters)
Executes the task with the input parameters |
NotifiableTaskMetadata |
getNotifiableTaskMetadata()
|
Method Detail |
---|
NotifiableTaskMetadata getNotifiableTaskMetadata()
void before(T parameters) throws TaskException
TaskException
.
parameters
- the parameters to be executed
TaskException
- in case of unexpected errorsvoid execute(T parameters) throws TaskException
parameters
-
TaskException
void after()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |