|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.jca.workmanager.ResourceWork
public class ResourceWork
This class defines a work of the JCA API by adding some properties around this work.
Field Summary | |
---|---|
private long |
creationTime
Creation of this object. |
private javax.resource.spi.work.ExecutionContext |
executionContext
JCA Execution context (contains information about transactions). |
private static JLog |
logger
Logger. |
private boolean |
started
This work has been started or not ? (default = false). |
private long |
timeout
Timeout for the given work. |
private javax.resource.spi.work.Work |
work
Work object that is wrapped. |
private javax.resource.spi.work.WorkListener |
workListener
Listener that is notified when work are accepted/rejected/started/completed. |
Constructor Summary | |
---|---|
ResourceWork(javax.resource.spi.work.Work work,
long timeout,
javax.resource.spi.work.ExecutionContext executionContext,
javax.resource.spi.work.WorkListener workListener)
Default constructor : build a wrapper around the given work. |
Method Summary | |
---|---|
long |
getCreationTime()
|
javax.resource.spi.work.ExecutionContext |
getExecutionContext()
|
long |
getTimeout()
|
javax.resource.spi.work.Work |
getWork()
|
javax.resource.spi.work.WorkListener |
getWorkListener()
|
boolean |
isStarted()
|
void |
setStarted()
Sets the started mode to true. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static JLog logger
private javax.resource.spi.work.Work work
private long timeout
private javax.resource.spi.work.ExecutionContext executionContext
private javax.resource.spi.work.WorkListener workListener
private long creationTime
private boolean started
Constructor Detail |
---|
public ResourceWork(javax.resource.spi.work.Work work, long timeout, javax.resource.spi.work.ExecutionContext executionContext, javax.resource.spi.work.WorkListener workListener)
work
- the given worktimeout
- the timeout of this workexecutionContext
- the context for the given workworkListener
- the listener on this work objectMethod Detail |
---|
public javax.resource.spi.work.Work getWork()
public long getTimeout()
public javax.resource.spi.work.ExecutionContext getExecutionContext()
public javax.resource.spi.work.WorkListener getWorkListener()
public long getCreationTime()
public boolean isStarted()
public void setStarted()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |