Work (Java EE 5)

Java EE API


javax.resource.spi.work Interface Work

All Superinterfaces:
Runnable

public interface Work
extends Runnable

Implements: Runnable

此方法模拟 Work 实例,提交后该实例将由 WorkManager 执行。
英文文档:

This models a Work instance that would be executed by a WorkManager upon submission.

Version:
1.0
Author:
Ram Jeyaraman

Method Summary
 void
 
Methods inherited from interface java.lang.Runnable
 

Method Detail

public void release()
WorkManager 可以调用此方法提示活动的 Work 实例尽快完成执行。将在单独的线程上,而不是在当前执行 Work 实例的线程上调用此方法。
英文文档:

release

void release()
The WorkManager might call this method to hint the active Work instance to complete execution as soon as possible. This would be called on a seperate thread other than the one currently executing the Work instance.



Submit a bug or feature

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

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

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