WorkAdapter (Java EE 5)

Java EE API


javax.resource.spi.work Class WorkAdapter

java.lang.Object
  extended by javax.resource.spi.work.WorkAdapter
All Implemented Interfaces:
EventListener, WorkListener

public class WorkAdapter
extends Object
implements WorkListener

Implements: WorkListener

提供此类的目的是为了便于轻松创建 WorkListener 实例:只需扩展此类并只重写感兴趣的那些方法。
英文文档:

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
 
Method Summary
 void
 void
 void
 void
 
Methods inherited from class java.lang.Object
 

Constructor Detail

public WorkAdapter()
英文文档:

WorkAdapter

public WorkAdapter()
Method Detail

public void workAccepted(WorkEvent e)
接受 Work 实例时调用。
英文文档:

workAccepted

public void workAccepted(WorkEvent e)
Invoked when a Work instance has been accepted.

Specified by:
workAccepted in interface WorkListener

public void workRejected(WorkEvent e)
拒绝 Work 实例时调用。
英文文档:

workRejected

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

Specified by:
workRejected in interface WorkListener

public void workStarted(WorkEvent e)
Work 实例开始执行时调用。这仅仅意味着分配了一个线程。
英文文档:

workStarted

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

Specified by:
workStarted in interface WorkListener

public void workCompleted(WorkEvent e)
Work 实例完成执行时调用。
英文文档:

workCompleted

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

Specified by:
workCompleted in interface WorkListener


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!