Save This Page
Home » jboss-5.0.0.CR1-src » org » jboss » resource » work » [javadoc | source]
org.jboss.resource.work
public class: WorkWrapper [javadoc | source]
java.lang.Object
   org.jboss.util.threadpool.BasicTaskWrapper
      org.jboss.resource.work.WorkWrapper

All Implemented Interfaces:
    org.jboss.util.threadpool.Task

Wraps the resource adapter's work.
Constructor:
 public WorkWrapper(JBossWorkManager workManager,
    Work work,
    int waitType,
    long startTimeout,
    ExecutionContext executionContext,
    WorkListener workListener) 
    Create a new WorkWrapper
    Parameters:
    workManager - the work manager
    work - the work
    waitType - the waitType
    executionContext - the execution context
    workListener - the WorkListener
    Throws:
    IllegalArgumentException - for null work, execution context or a negative start timeout
Method from org.jboss.resource.work.WorkWrapper Summary:
accepted,   completed,   execute,   getBlockedElapsed,   getCompletionTimeout,   getExecutionContext,   getPriority,   getStartTimeout,   getWaitType,   getWork,   getWorkException,   getWorkListener,   getWorkManager,   rejected,   started,   stop,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.resource.work.WorkWrapper Detail:
 public  void accepted(long time) 
 public  void completed(long time,
    Throwable throwable) 
 public  void execute() 
 public long getBlockedElapsed() 
    Retrieve the time blocked
 public long getCompletionTimeout() 
 public ExecutionContext getExecutionContext() 
    Retrieve the exection context
 public int getPriority() 
 public long getStartTimeout() 
 public int getWaitType() 
 public Work getWork() 
    Retrieve the work
 public WorkException getWorkException() 
    Get any exception
 public WorkListener getWorkListener() 
    Retrieve the work listener
 public JBossWorkManager getWorkManager() 
    Get the work manager
 public  void rejected(long time,
    Throwable throwable) 
 public  void started(long time) 
 public  void stop() 
 public String toString()