org.ow2.easybeans.jca.workmanager
Class ResourceWork
java.lang.Object
org.ow2.easybeans.jca.workmanager.ResourceWork
public class ResourceWork
- extends java.lang.Object
This class defines a work of the JCA API by adding some properties around
this work.
- Author:
- Philippe Durieux (JOnAS), Florent Benoit (EasyBeans)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceWork
public ResourceWork(Work work,
long timeout,
ExecutionContext executionContext,
WorkListener workListener)
- Default constructor : build a wrapper around the given work.
- Parameters:
work
- the given worktimeout
- the timeout of this workexecutionContext
- the context for the given workworkListener
- the listener on this work object
getWork
public Work getWork()
- Returns:
- the work object
getTimeout
public long getTimeout()
- Returns:
- the timeout of this object
getExecutionContext
public ExecutionContext getExecutionContext()
- Returns:
- the execution context of this work
getWorkListener
public WorkListener getWorkListener()
- Returns:
- the listener of this work.
getCreationTime
public long getCreationTime()
- Returns:
- the creation time of this object.
isStarted
public boolean isStarted()
- Returns:
- true if the work has been started, else false.
setStarted
public void setStarted()
- Sets the started mode to true.
Copyright © 2006-2009 OW2 Consortium. All Rights Reserved.