FileDocCategorySizeDatePackage
WorkListener.javaAPI DocGlassfish v2 API3273Fri May 04 22:35:38 BST 2007javax.resource.spi.work

WorkListener

public interface WorkListener implements EventListener
This models a WorkListener instance which would be notified by the WorkManager when the various Work processing events (work accepted, work rejected, work started, work completed) occur. The WorkListener instance must not make any thread assumptions and must be thread-safe ie., a notification could occur from any arbitrary thread. Further, it must not make any assumptions on the ordering of notifications.
version
1.0
author
Ram Jeyaraman

Fields Summary
Constructors Summary
Methods Summary
public voidworkAccepted(WorkEvent e)
Invoked when a Work instance has been accepted.

public voidworkCompleted(WorkEvent e)
Invoked when a Work instance has completed execution.

public voidworkRejected(WorkEvent e)
Invoked when a Work instance has been rejected.

public voidworkStarted(WorkEvent e)
Invoked when a Work instance has started execution. This only means that a thread has been allocated.