|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JobListener
Classes that implement this interface and register it with the job manager will get contacted each time a job completes or fails. Once notified the class can interogate the job to find out its completed status and do any extra work. Also the onComplete and onFailure callback will be executed in the same thread as the Job was executed.
Method Summary | |
---|---|
void |
onComplete(JobContext context)
The call back method when the job with which this registered is successfully executed. |
void |
onFailure(JobContext context,
Throwable exception)
Called when there is an error executing the job with which this is registered. |
Method Detail |
---|
void onComplete(JobContext context)
context
- The job's contextvoid onFailure(JobContext context, Throwable exception)
context
- The job's contextexception
- An error or exception that occurred during job's execution.
|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |