| org.jboss.resource.work.WorkWrapper
WorkWrapper | public class WorkWrapper extends BasicTaskWrapper implements Task(Code) | | Wraps the resource adapter's work.
author: Adrian Brock version: $Revision: 57189 $ |
Constructor Summary | |
public | WorkWrapper(JBossWorkManager workManager, Work work, int waitType, long startTimeout, ExecutionContext executionContext, WorkListener workListener) |
WorkWrapper | public WorkWrapper(JBossWorkManager workManager, Work work, int waitType, long startTimeout, ExecutionContext executionContext, WorkListener workListener)(Code) | | Create a new WorkWrapper
Parameters: workManager - the work manager Parameters: work - the work Parameters: waitType - the waitType Parameters: executionContext - the execution context Parameters: workListener - the WorkListener throws: IllegalArgumentException - for null work, execution context or a negative start timeout |
accepted | public void accepted(long time)(Code) | | |
execute | public void execute()(Code) | | |
getBlockedElapsed | public long getBlockedElapsed()(Code) | | Retrieve the time blocked
the blocked time |
getCompletionTimeout | public long getCompletionTimeout()(Code) | | |
getExecutionContext | public ExecutionContext getExecutionContext()(Code) | | Retrieve the exection context
the execution context |
getPriority | public int getPriority()(Code) | | |
getStartTimeout | public long getStartTimeout()(Code) | | |
getWaitType | public int getWaitType()(Code) | | |
getWork | public Work getWork()(Code) | | Retrieve the work
the work |
getWorkException | public WorkException getWorkException()(Code) | | Get any exception
the exception or null if there is none |
getWorkListener | public WorkListener getWorkListener()(Code) | | Retrieve the work listener
the WorkListener |
started | public void started(long time)(Code) | | |
|
|