public class WorkAdapter extends Object implements WorkListener
WorkListener
instances by extending this class
and overriding only those methods of interest.Constructor and Description |
---|
WorkAdapter() |
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. |
public void workAccepted(WorkEvent e)
Work
instance has been accepted.workAccepted
in interface WorkListener
e
- A WorkEvent
object that provides more
information about the accepted Work.public void workRejected(WorkEvent e)
Work
instance has been rejected.workRejected
in interface WorkListener
e
- A WorkEvent
object that provides more
information about the rejected Work.public void workStarted(WorkEvent e)
Work
instance has started execution.
This only means that a thread has been allocated.workStarted
in interface WorkListener
e
- A WorkEvent
object that provides more
information about the rejected Work.public void workCompleted(WorkEvent e)
Work
instance has completed execution.workCompleted
in interface WorkListener
e
- A WorkEvent
object that provides more
information about the completed Work.Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.