|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NotificationListener<T extends java.lang.Runnable>
A callback inyterface that can be optionally used for registering interest in status of asynchronously scheduled unit of work.
Method Summary | |
---|---|
void |
workAccepted(T work)
Callback method when the unit of work is accepted. |
void |
workCompleted(T work)
Callback method when the unit of work is successfully completed. |
void |
workFailed(T work,
java.lang.Throwable error)
Callnack when the unit of work fails to complete. |
void |
workRejected(T work)
Callback when the unit of work is rejected. |
void |
workStarted(T work)
Callback when the unit of work is started. |
Method Detail |
---|
void workAccepted(T work)
work
- Work that was accepted.void workCompleted(T work)
work
- Work that was succesfully completed.void workStarted(T work)
work
- Unit of work that was started.void workRejected(T work)
work
- Unit of work that was rejected.void workFailed(T work, java.lang.Throwable error)
work
- Unit of work that failed to complete.error
- Error that caused the unit of work to fail.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |