|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
javax.resource.spi.work Class WorkAdapter
java.lang.Objectjavax.resource.spi.work.WorkAdapter
- All Implemented Interfaces:
- EventListener, WorkListener
public class WorkAdapter
- extends Object
- implements WorkListener
Implements:
WorkListener
提供此类的目的是为了便于轻松创建
WorkListener 实例:只需扩展此类并只重写感兴趣的那些方法。
| version | 1.0 |
This class is provided as a convenience for easily creating
WorkListener instances by extending this class
and overriding only those methods of interest.
- Version:
- 1.0
- Author:
- Ram Jeyaraman
| Constructor Summary | |
|---|---|
WorkAdapter()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public
WorkAdapter()
英文文档:
WorkAdapter
public WorkAdapter()
| Method Detail |
|---|
public void
workAccepted(WorkEvent e)
接受 Work 实例时调用。
英文文档:
workAccepted
public void workAccepted(WorkEvent e)
- Invoked when a
Workinstance has been accepted. - Specified by:
workAcceptedin interfaceWorkListener
public void
workRejected(WorkEvent e)
拒绝 Work 实例时调用。
英文文档:
workRejected
public void workRejected(WorkEvent e)
- Invoked when a
Workinstance has been rejected. - Specified by:
workRejectedin interfaceWorkListener
public void
workStarted(WorkEvent e)
Work 实例开始执行时调用。这仅仅意味着分配了一个线程。
英文文档:
workStarted
public void workStarted(WorkEvent e)
- Invoked when a
Workinstance has started execution. This only means that a thread has been allocated. - Specified by:
workStartedin interfaceWorkListener
public void
workCompleted(WorkEvent e)
Work 实例完成执行时调用。
英文文档:
workCompleted
public void workCompleted(WorkEvent e)
- Invoked when a
Workinstance has completed execution. - Specified by:
workCompletedin interfaceWorkListener
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Submit a bug or feature
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!
javax.resource.spi.work.WorkAdapter