public interface WorkListener extends EventListener
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.Modifier and Type | Method and Description |
---|---|
void |
workAccepted(WorkEvent e)
Invoked when a
Work instance has been accepted. |
void |
workCompleted(WorkEvent e)
Invoked when a
Work instance has completed execution. |
void |
workRejected(WorkEvent e)
Invoked when a
Work instance has been rejected. |
void |
workStarted(WorkEvent e)
Invoked when a
Work instance has started execution. |
void workAccepted(WorkEvent e)
Work
instance has been accepted.e
- A WorkEvent
object that provides more
information about the accepted Work.void workRejected(WorkEvent e)
Work
instance has been rejected.e
- A WorkEvent
object that provides more
information about the rejected Work.void workStarted(WorkEvent e)
Work
instance has started execution.
This only means that a thread has been allocated.e
- A WorkEvent
object that provides more
information about the rejected Work.void workCompleted(WorkEvent e)
Work
instance has completed execution.e
- A WorkEvent
object that provides more
information about the completed Work.Copyright © 2020 JBoss by Red Hat. All rights reserved.