|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
R - Result type of the job after successful terminationpublic interface JobTerminationHandler<R>
A JobTerminationHandler can be registered with a
JobProcessor and is notified when jobs terminate, regularly or
exceptional.
Note: the notification methods of a job termination handler should be
exception safe, i.e. all exceptions should be caught and handled. If an
exception is thrown during notification, it is wrapped within an
UncaughtJobTerminationHandlerException and rethrown, i.e. job
execution aborts.
| Method Summary | |
|---|---|
void |
terminated(Job job,
R result)
Notification method for successful job execution termination. |
void |
terminatedByException(Job job,
Throwable exception)
Notification method for exceptional job execution termination Note: this method should not throw exceptions, see class comments. |
| Method Detail |
|---|
void terminated(Job job,
R result)
job - The concerned jobresult - The outcome of the job execution
void terminatedByException(Job job,
Throwable exception)
job - The concerned jobexception - The exception which caused the abnormal termination
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||